Skip to content

Commit

Permalink
don't plot zeros in per scan chi2
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Jun 18, 2024
1 parent e414374 commit a804ce4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions surfvis/surfchi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def main():
count = counts[key]
chi2_dof = np.zeros_like(val)
chi2_dof[count>0] = val[count>0]/count[count>0]
chi2_dof[count<=0] = np.nan

basename = foldername + f'/field{field}' + f'/spw{spw}'+ f'/scan{scan}/'
makeplot(chi2_dof, basename + f'combined.png',
Expand Down

0 comments on commit a804ce4

Please sign in to comment.