Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gregory Ashton
PyFstat
Commits
087b790d
Commit
087b790d
authored
May 14, 2017
by
Gregory Ashton
Browse files
Merge branch 'master' of gitlab.aei.uni-hannover.de:GregAshton/PyFstat
parents
5b3a1c6d
b0d7bcf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
087b790d
...
@@ -198,7 +198,7 @@ class ComputeFstat(object):
...
@@ -198,7 +198,7 @@ class ComputeFstat(object):
maxStartTime
=
None
,
binary
=
False
,
transient
=
True
,
BSGL
=
False
,
maxStartTime
=
None
,
binary
=
False
,
transient
=
True
,
BSGL
=
False
,
detectors
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
detectors
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
injectSources
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
injectSources
=
None
,
injectSqrtSX
=
None
,
assumeSqrtSX
=
None
):
injectSqrtSX
=
None
,
assumeSqrtSX
=
None
,
SSBprec
=
None
):
"""
"""
Parameters
Parameters
----------
----------
...
@@ -235,6 +235,9 @@ class ComputeFstat(object):
...
@@ -235,6 +235,9 @@ class ComputeFstat(object):
Don't estimate noise-floors but assume (stationary) per-IFO
Don't estimate noise-floors but assume (stationary) per-IFO
sqrt{SX} (if single value: use for all IFOs). If signal only,
sqrt{SX} (if single value: use for all IFOs). If signal only,
set sqrtSX=1
set sqrtSX=1
SSBprec: int
Flag to set the SSB calculation: 0=Newtonian, 1=relativistic,
2=relativisitic optimised, 3=DMoff, 4=NO_SPIN
"""
"""
...
@@ -325,7 +328,11 @@ class ComputeFstat(object):
...
@@ -325,7 +328,11 @@ class ComputeFstat(object):
FstatOAs
=
lalpulsar
.
FstatOptionalArgs
()
FstatOAs
=
lalpulsar
.
FstatOptionalArgs
()
FstatOAs
.
randSeed
=
lalpulsar
.
FstatOptionalArgsDefaults
.
randSeed
FstatOAs
.
randSeed
=
lalpulsar
.
FstatOptionalArgsDefaults
.
randSeed
FstatOAs
.
SSBprec
=
lalpulsar
.
FstatOptionalArgsDefaults
.
SSBprec
if
self
.
SSBprec
:
logging
.
info
(
'Using SSBprec={}'
.
format
(
self
.
SSBprec
))
FstatOAs
.
SSBprec
=
self
.
SSBprec
else
:
FstatOAs
.
SSBprec
=
lalpulsar
.
FstatOptionalArgsDefaults
.
SSBprec
FstatOAs
.
Dterms
=
lalpulsar
.
FstatOptionalArgsDefaults
.
Dterms
FstatOAs
.
Dterms
=
lalpulsar
.
FstatOptionalArgsDefaults
.
Dterms
FstatOAs
.
runningMedianWindow
=
lalpulsar
.
FstatOptionalArgsDefaults
.
runningMedianWindow
FstatOAs
.
runningMedianWindow
=
lalpulsar
.
FstatOptionalArgsDefaults
.
runningMedianWindow
FstatOAs
.
FstatMethod
=
lalpulsar
.
FstatOptionalArgsDefaults
.
FstatMethod
FstatOAs
.
FstatMethod
=
lalpulsar
.
FstatOptionalArgsDefaults
.
FstatMethod
...
@@ -629,7 +636,7 @@ class SemiCoherentSearch(BaseSearchClass, ComputeFstat):
...
@@ -629,7 +636,7 @@ class SemiCoherentSearch(BaseSearchClass, ComputeFstat):
binary
=
False
,
BSGL
=
False
,
minStartTime
=
None
,
binary
=
False
,
BSGL
=
False
,
minStartTime
=
None
,
maxStartTime
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
maxStartTime
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
detectors
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
detectors
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
injectSources
=
None
,
assumeSqrtSX
=
None
):
injectSources
=
None
,
assumeSqrtSX
=
None
,
SSBprec
=
None
):
"""
"""
Parameters
Parameters
----------
----------
...
@@ -756,7 +763,8 @@ class SemiCoherentGlitchSearch(BaseSearchClass, ComputeFstat):
...
@@ -756,7 +763,8 @@ class SemiCoherentGlitchSearch(BaseSearchClass, ComputeFstat):
def
__init__
(
self
,
label
,
outdir
,
tref
,
minStartTime
,
maxStartTime
,
def
__init__
(
self
,
label
,
outdir
,
tref
,
minStartTime
,
maxStartTime
,
nglitch
=
0
,
sftfilepath
=
None
,
theta0_idx
=
0
,
BSGL
=
False
,
nglitch
=
0
,
sftfilepath
=
None
,
theta0_idx
=
0
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
assumeSqrtSX
=
None
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
assumeSqrtSX
=
None
,
detectors
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
):
detectors
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
SSBprec
=
None
):
"""
"""
Parameters
Parameters
----------
----------
...
...
pyfstat/grid_based_searches.py
View file @
087b790d
...
@@ -21,7 +21,7 @@ class GridSearch(BaseSearchClass):
...
@@ -21,7 +21,7 @@ class GridSearch(BaseSearchClass):
Alphas
=
[
0
],
Deltas
=
[
0
],
tref
=
None
,
minStartTime
=
None
,
Alphas
=
[
0
],
Deltas
=
[
0
],
tref
=
None
,
minStartTime
=
None
,
maxStartTime
=
None
,
nsegs
=
1
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxStartTime
=
None
,
nsegs
=
1
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
maxCoverFreq
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
detectors
=
None
):
detectors
=
None
,
SSBprec
=
None
):
"""
"""
Parameters
Parameters
----------
----------
...
@@ -57,7 +57,7 @@ class GridSearch(BaseSearchClass):
...
@@ -57,7 +57,7 @@ class GridSearch(BaseSearchClass):
earth_ephem
=
self
.
earth_ephem
,
sun_ephem
=
self
.
sun_ephem
,
earth_ephem
=
self
.
earth_ephem
,
sun_ephem
=
self
.
sun_ephem
,
detectors
=
self
.
detectors
,
transient
=
False
,
detectors
=
self
.
detectors
,
transient
=
False
,
minStartTime
=
self
.
minStartTime
,
maxStartTime
=
self
.
maxStartTime
,
minStartTime
=
self
.
minStartTime
,
maxStartTime
=
self
.
maxStartTime
,
BSGL
=
self
.
BSGL
)
BSGL
=
self
.
BSGL
,
SSBprec
=
self
.
SSBprec
)
self
.
search
.
get_det_stat
=
self
.
search
.
run_computefstatistic_single_point
self
.
search
.
get_det_stat
=
self
.
search
.
run_computefstatistic_single_point
else
:
else
:
self
.
search
=
SemiCoherentSearch
(
self
.
search
=
SemiCoherentSearch
(
...
@@ -336,7 +336,8 @@ class FrequencySlidingWindow(GridSearch):
...
@@ -336,7 +336,8 @@ class FrequencySlidingWindow(GridSearch):
Alpha
,
Delta
,
tref
,
minStartTime
=
None
,
Alpha
,
Delta
,
tref
,
minStartTime
=
None
,
maxStartTime
=
None
,
window_size
=
10
*
86400
,
window_delta
=
86400
,
maxStartTime
=
None
,
window_size
=
10
*
86400
,
window_delta
=
86400
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
BSGL
=
False
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
earth_ephem
=
None
,
sun_ephem
=
None
,
detectors
=
None
):
earth_ephem
=
None
,
sun_ephem
=
None
,
detectors
=
None
,
SSBprec
=
None
):
"""
"""
Parameters
Parameters
----------
----------
...
@@ -376,7 +377,7 @@ class FrequencySlidingWindow(GridSearch):
...
@@ -376,7 +377,7 @@ class FrequencySlidingWindow(GridSearch):
earth_ephem
=
self
.
earth_ephem
,
sun_ephem
=
self
.
sun_ephem
,
earth_ephem
=
self
.
earth_ephem
,
sun_ephem
=
self
.
sun_ephem
,
detectors
=
self
.
detectors
,
transient
=
True
,
detectors
=
self
.
detectors
,
transient
=
True
,
minStartTime
=
self
.
minStartTime
,
maxStartTime
=
self
.
maxStartTime
,
minStartTime
=
self
.
minStartTime
,
maxStartTime
=
self
.
maxStartTime
,
BSGL
=
self
.
BSGL
)
BSGL
=
self
.
BSGL
,
SSBprec
=
self
.
SSBprec
)
self
.
search
.
get_det_stat
=
(
self
.
search
.
get_det_stat
=
(
self
.
search
.
run_computefstatistic_single_point
)
self
.
search
.
run_computefstatistic_single_point
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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