Skip to content
Snippets Groups Projects
Commit 14651ca4 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

a fix to compute_jost_withnan_dumb that won't work

parent 7dad1721
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,7 @@ def make_compute_jost_nonan(cov):
def make_compute_jost_withnan_dumb(cov):
def compute_jost_withnan_dumb(z):
whichnan = np.where(np.logical_not(np.isnan(z)))
invcov = np.linalg.inv(cov[whichnan, whichnan])
invcov = np.linalg.inv(cov.iloc[whichnan, whichnan])
znonan = z[whichnan]
p = znonan.shape[0]
chi = np.sum(np.multiply(znonan, znonan.dot(invcov)))
......
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