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
David Keitel
PyFstat
Commits
31afa0ae
Commit
31afa0ae
authored
Aug 19, 2017
by
Gregory Ashton
Browse files
Adds injectedSources to uniform prior search
parent
b5f24e3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/grid_based_searches.py
View file @
31afa0ae
...
...
@@ -285,7 +285,7 @@ class GridUniformPriorSearch():
def
__init__
(
self
,
theta_prior
,
NF0
,
NF1
,
label
,
outdir
,
sftfilepattern
,
tref
,
minStartTime
,
maxStartTime
,
minCoverFreq
=
None
,
maxCoverFreq
=
None
,
BSGL
=
False
,
detectors
=
None
,
nsegs
=
1
,
SSBprec
=
None
):
SSBprec
=
None
,
injectSources
=
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
]
...
...
@@ -295,7 +295,8 @@ class GridUniformPriorSearch():
Alphas
=
[
theta_prior
[
'Alpha'
]],
Deltas
=
[
theta_prior
[
'Delta'
]],
minStartTime
=
minStartTime
,
maxStartTime
=
maxStartTime
,
BSGL
=
BSGL
,
detectors
=
detectors
,
minCoverFreq
=
minCoverFreq
,
maxCoverFreq
=
maxCoverFreq
,
nsegs
=
nsegs
,
SSBprec
=
SSBprec
)
injectSources
=
injectSources
,
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