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
efd81d4b
Commit
efd81d4b
authored
Aug 01, 2017
by
Gregory Ashton
Browse files
Adds SSBprec to uniform prior search
parent
d75d67b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/grid_based_searches.py
View file @
efd81d4b
...
...
@@ -279,9 +279,11 @@ class GridSearch(BaseSearchClass):
class
GridUniformPriorSearch
():
@
helper_functions
.
initializer
def
__init__
(
self
,
theta_prior
,
NF0
,
NF1
,
label
,
outdir
,
sftfilepattern
,
tref
,
minStartTime
,
maxStartTime
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
BSGL
=
False
,
detectors
=
None
,
nsegs
=
1
):
maxCoverFreq
=
None
,
BSGL
=
False
,
detectors
=
None
,
nsegs
=
1
,
SSBprec
=
None
):
dF0
=
(
theta_prior
[
'F0'
][
'upper'
]
-
theta_prior
[
'F0'
][
'lower'
])
/
NF0
dF1
=
(
theta_prior
[
'F1'
][
'upper'
]
-
theta_prior
[
'F1'
][
'lower'
])
/
NF1
F0s
=
[
theta_prior
[
'F0'
][
'lower'
],
theta_prior
[
'F0'
][
'upper'
],
dF0
]
...
...
@@ -291,7 +293,7 @@ class GridUniformPriorSearch():
Alphas
=
[
theta_prior
[
'Alpha'
]],
Deltas
=
[
theta_prior
[
'Delta'
]],
minStartTime
=
minStartTime
,
maxStartTime
=
maxStartTime
,
BSGL
=
BSGL
,
detectors
=
detectors
,
minCoverFreq
=
minCoverFreq
,
maxCoverFreq
=
maxCoverFreq
,
nsegs
=
nsegs
)
maxCoverFreq
=
maxCoverFreq
,
nsegs
=
nsegs
,
SSBprec
=
SSBprec
)
def
run
(
self
):
self
.
search
.
run
()
...
...
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