Skip to content
Snippets Groups Projects
Commit 290d7bef authored by Ingrid Luijkx's avatar Ingrid Luijkx
Browse files

Fix for np.linalg.svd on Cartesius for sibcasa covariance matrices

parent 58818fde
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,10 @@ class StateVector(object):
# Make a cholesky decomposition of the covariance matrix
_, s, _ = np.linalg.svd(covariancematrix)
try:
_, s, _ = np.linalg.svd(covariancematrix)
except:
s = np.linalg.svd(covariancematrix, full_matrices=1, compute_uv=0) #Cartesius fix
dof = np.sum(s) ** 2 / sum(s ** 2)
C = np.linalg.cholesky(covariancematrix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment