Skip to content
Snippets Groups Projects
Commit 10491e1a authored by Shio Sakon's avatar Shio Sakon Committed by Divya Singh
Browse files

Revert "take out bankchi histogram plot (fix it for SSM bank later)"

This reverts commit 241436df.
parent 319fa4c0
No related branches found
No related merge requests found
Pipeline #672949 passed
......@@ -331,7 +331,7 @@ for num, filename in enumerate(filenames):
# SNR and \chi^2
for instrument in rankingstat.instruments:
for chi_type in ("chi",): # delete bankchi for SSM, for chi_type in ("chi", "bankchi"):
for chi_type in ("chi", "bankchi"):
for plot_type in ("background_pdf", "injection_pdf", "zero_lag_pdf", "LR"):
if instrument in getattr(options, "event_%ssq_dict" % chi_type).keys():
fig = plotfar.plot_snr_chi_pdf(rankingstat,
......
......@@ -108,8 +108,8 @@ def plot_snr_chi_pdf(rankingstat, instrument, which, chi_type, snr_max, event_sn
warnings.warn("%s %s is all NaN or inf, skipping" % (instrument, which))
return None
if numpy.isnan(z).any():
if numpy.logical_or(numpy.isnan(z), numpy.isinf(z)).all():
warnings.warn("%s %s is all NaN or inf, skipping" % (instrument, which))
if numpy.isnan(z).all():
warnings.warn("%s %s is all NaN, skipping" % (instrument, which))
return None
warnings.warn("%s %s contains NaNs" % (instrument, which))
z = numpy.ma.masked_where(numpy.isnan(z), z)
......
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