Skip to content
Snippets Groups Projects

Online new extinction

Merged Prathamesh Joshi requested to merge o4b-online-new-extinction into o4b-online
10 unresolved threads
Files
2
@@ -345,13 +345,14 @@ class EventPlotter(events.EventProcessor):
else:
# no sngl for this instrument
fig = plotfar.plot_snr_chi_pdf(rankingstat, instrument, plot_type, chi_type, self.max_snr)
filename = '{}_{}_{}_snr{}.{}'.format(event['gid'], instrument, plot_type, chi_type, self.format)
if not self.no_upload:
lvalert_helper.upload_fig(fig, self.client, event['gid'], filename = filename, log_message = '%s SNR, %ssq PDF' % (instrument, chi_type), tagname = 'background')
if self.output_path is not None:
filename = os.path.join(self.output_path, filename)
logging.info('writing {} ...'.format(filename))
fig.savefig(filename)
if fig is not None:
filename = '{}_{}_{}_snr{}.{}'.format(event['gid'], instrument, plot_type, chi_type, self.format)
if not self.no_upload:
lvalert_helper.upload_fig(fig, self.client, event['gid'], filename = filename, log_message = '%s SNR, %ssq PDF' % (instrument, chi_type), tagname = 'background')
if self.output_path is not None:
filename = os.path.join(self.output_path, filename)
logging.info('writing {} ...'.format(filename))
fig.savefig(filename)
fig = plotfar.plot_likelihood_ratio_ccdf(fapfar, (0., max(40., coinc_event.likelihood - coinc_event.likelihood % 5. + 5.)), ln_likelihood_ratio_markers = (coinc_event.likelihood,))
filename = '{}_likehoodratio_ccdf.{}'.format(event['gid'], self.format)
Loading