Skip to content
Snippets Groups Projects
Commit 47892b74 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Adds warning for multiple detectors

parent 0066bbce
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,10 @@ def predict_fstat(h0, cosi, psi, Alpha, Delta, Freq, sftfilepattern,
if assumeSqrtSX:
cl_pfs.append("--assumeSqrtSX={}".format(assumeSqrtSX))
if 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)))
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment