From 788d8e8f912575ccec68a6c5f7e52230142fa396 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Mon, 19 Nov 2018 14:19:20 +1100
Subject: [PATCH] Store the complex optimal SNR and add parameters to the
 meta_data

---
 bilby/gw/detector.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bilby/gw/detector.py b/bilby/gw/detector.py
index 9833f7f3b..a35a7b64e 100644
--- a/bilby/gw/detector.py
+++ b/bilby/gw/detector.py
@@ -1278,10 +1278,12 @@ class Interferometer(object):
                 sampling_frequency=self.strain_data.sampling_frequency,
                 duration=self.strain_data.duration,
                 start_time=self.strain_data.start_time)
+
         self.meta_data['optimal_SNR'] = (
-            np.sqrt(self.optimal_snr_squared(signal=signal_ifo).real))
+            np.sqrt(self.optimal_snr_squared(signal=signal_ifo)).real)
         self.meta_data['matched_filter_SNR'] = (
-            np.sqrt(self.matched_filter_snr_squared(signal=signal_ifo).real))
+            np.sqrt(self.matched_filter_snr_squared(signal=signal_ifo)))
+        self.meta_data['parameters'] = parameters
 
         logger.info("Injected signal in {}:".format(self.name))
         logger.info("  optimal SNR = {:.2f}".format(self.meta_data['optimal_SNR']))
-- 
GitLab