From 89cd9f40b920d5fc4d241d69cb3cf85fd63d48c8 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Bayle <j2b.bayle@gmail.com>
Date: Thu, 1 Sep 2022 16:08:48 +0200
Subject: [PATCH] Setting `gw_group` to None when no GW file are used

---
 lisainstrument/instrument.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisainstrument/instrument.py b/lisainstrument/instrument.py
index c1d9b62..7bc02c1 100755
--- a/lisainstrument/instrument.py
+++ b/lisainstrument/instrument.py
@@ -699,10 +699,12 @@ class Instrument:
         elif gws is None:
             logger.debug("No gravitational-wave responses")
             self.gw_file = None
+            self.gw_group = None
             self.gws = ForEachMOSA(0)
         else:
             logger.info("Using user-provided gravitational-wave responses")
             self.gw_file = None
+            self.gw_group = None
             self.gws = ForEachMOSA(gws)
 
     def _init_gw_file_before_1_1(self, gwf):
-- 
GitLab