From 38c217a0e219df59c366dae5e20164683e664fc7 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Wed, 20 Dec 2017 11:50:48 +0100 Subject: [PATCH] Fix error in commit c5e25404 Previously this returned True regardless of the value of transientWindowType when really we want to also check if it is not None --- pyfstat/grid_based_searches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfstat/grid_based_searches.py b/pyfstat/grid_based_searches.py index 1723a9f..672ca26 100644 --- a/pyfstat/grid_based_searches.py +++ b/pyfstat/grid_based_searches.py @@ -170,7 +170,7 @@ class GridSearch(BaseSearchClass): windowRange = getattr(self.search, 'windowRange', None) FstatMap = getattr(self.search, 'FstatMap', None) thisCand = list(vals) + [detstat] - if hasattr(self, 'transientWindowType'): + if getattr(self, 'transientWindowType', None): if self.outputTransientFstatMap: tCWfile = os.path.splitext(self.out_file)[0]+'_tCW_%.16f_%.16f_%.16f_%.16g_%.16g.dat' % (vals[2],vals[5],vals[6],vals[3],vals[4]) # freq alpha delta f1dot f2dot fo = lal.FileOpen(tCWfile, 'w') -- GitLab