Skip to content

Commit

Permalink
Fix nansum check in pygrb_efficiency (gwastro#4889)
Browse files Browse the repository at this point in the history
  • Loading branch information
pannarale authored Sep 23, 2024
1 parent dc2f584 commit ed37306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pygrb/pycbc_pygrb_efficiency
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,10 @@ ax.plot(dist_plot_vals, (fraction_no_mc), 'g-',
ax.errorbar(dist_plot_vals, (fraction_no_mc),
yerr=[yerr_low_no_mc, yerr_high_no_mc], c='green')
marg_eff = fraction_mc
if not np.nansum(marg_eff) > 0:
if np.nansum(marg_eff) > 0:
ax.plot(dist_plot_vals, marg_eff, 'r-', label='Marginalised')
ax.errorbar(dist_plot_vals, marg_eff, yerr=[yerr_low, yerr_high], c='red')
if not np.nansum(red_efficiency) > 0:
if np.nansum(red_efficiency) > 0:
ax.plot(dist_plot_vals, red_efficiency, 'm-',
label='Inc. counting errors')
ax.set_ylim([0, 1])
Expand Down

0 comments on commit ed37306

Please sign in to comment.