Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Javier Sanchez Lopez committed Dec 7, 2020
1 parent 4545008 commit 5ad403f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions descwl/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,6 @@ def get_matrices(self,selected, get_cond_num=False, equilibrate=False):
"""
background = self.get_subimage(selected)
nsel = len(selected)
nstar = np.count_nonzero(np.array(self.is_star)[np.array(selected)])
npar = []
for i, idx in enumerate(selected):
if self.is_star[idx]:
Expand All @@ -490,6 +489,7 @@ def get_matrices(self,selected, get_cond_num=False, equilibrate=False):
j0 = 0
j1 = 0
for col, index2 in enumerate(selected[:row+1]):
j0 = j1
j1+= npar[col]
images, overlap = self.get_fisher_images(index1, index2, background)
if overlap is None:
Expand All @@ -498,7 +498,6 @@ def get_matrices(self,selected, get_cond_num=False, equilibrate=False):
fisher[i0:i1, j0:j1] = fisher_sums
if row != col:
fisher[j0:j1, i0:i1] = fisher_sums.T
j0 = j1
i0 = i1
# Sort indices into the selected array by increasing snr_iso.
priority = np.arange(nsel)[np.argsort(self.table['snr_iso'][selected])]
Expand Down

0 comments on commit 5ad403f

Please sign in to comment.