Skip to content

Commit

Permalink
fix bug in prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 7, 2024
1 parent dd1956d commit 7266611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/rvspecfit/spec_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def get_chisq_continuum(specdata, options=None):
else:
cur_mask = np.ones(len(cur_deviation), dtype=bool)
cur_true_chisq = np.sum(cur_deviation[cur_mask]**2)
cur_redchisq = cur_true_chisq / len(cur_mask.sum())
cur_redchisq = cur_true_chisq / cur_mask.sum()
chisq_array[i] = cur_true_chisq
redchisq_array[i] = cur_redchisq
return dict(chisq_array=chisq_array, redchisq_array=redchisq_array)
Expand Down

0 comments on commit 7266611

Please sign in to comment.