From 47892b740ce52059bf957641686644c1232c8065 Mon Sep 17 00:00:00 2001 From: Gregory Ashton <gregory.ashton@ligo.org> Date: Tue, 3 Oct 2017 10:09:28 +0200 Subject: [PATCH] Adds warning for multiple detectors --- pyfstat/core.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pyfstat/core.py b/pyfstat/core.py index 5630135..d54634d 100755 --- a/pyfstat/core.py +++ b/pyfstat/core.py @@ -168,7 +168,11 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern, if assumeSqrtSX: cl_pfs.append("--assumeSqrtSX={}".format(assumeSqrtSX)) if IFO: - cl_pfs.append("--IFO={}".format(IFO)) + if ',' in IFO: + logging.warning('Multiple detector selection not available, using' + ' all available data') + else: + cl_pfs.append("--IFO={}".format(IFO)) cl_pfs.append("--minStartTime={}".format(int(minStartTime))) cl_pfs.append("--maxStartTime={}".format(int(maxStartTime))) @@ -411,7 +415,8 @@ class ComputeFstat(BaseSearchClass): constraints = lalpulsar.SFTConstraints() if self.detectors: if ',' in self.detectors: - constraints.detector = self.detectors + logging.warning('Multiple detector selection not available,' + ' using all available data') else: constraints.detector = self.detectors if self.minStartTime: -- GitLab