Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Keitel
PyFstat
Commits
47892b74
Commit
47892b74
authored
Oct 03, 2017
by
Gregory Ashton
Browse files
Adds warning for multiple detectors
parent
0066bbce
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
47892b74
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment