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
e06f54ea
Commit
e06f54ea
authored
Feb 28, 2017
by
Gregory Ashton
Browse files
Change functionaliy of uniform prior to allow figures to be modified
parent
1ebf9534
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyfstat/grid_based_searches.py
View file @
e06f54ea
...
...
@@ -236,19 +236,20 @@ class GridSearch(BaseSearchClass):
class
GridUniformPriorSearch
():
def
__init__
(
self
,
theta_prior
,
NF0
,
NF1
,
label
,
outdir
,
sftfilepath
,
tref
,
minStartTime
,
maxStartTime
,
BSGL
=
False
,
detectors
=
None
,
**
kwargs
):
tref
,
minStartTime
,
maxStartTime
,
BSGL
=
False
,
detectors
=
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
]
F1s
=
[
theta_prior
[
'F1'
][
'lower'
],
theta_prior
[
'F1'
][
'upper'
],
dF1
]
search
=
GridSearch
(
self
.
search
=
GridSearch
(
label
,
outdir
,
sftfilepath
,
F0s
=
F0s
,
F1s
=
F1s
,
tref
=
tref
,
Alphas
=
[
theta_prior
[
'Alpha'
]],
Deltas
=
[
theta_prior
[
'Delta'
]],
minStartTime
=
minStartTime
,
maxStartTime
=
maxStartTime
,
BSGL
=
BSGL
,
detectors
=
detectors
)
search
.
run
()
search
.
plot_2D
(
'F0'
,
'F1'
,
**
kwargs
)
def
run
(
self
,
**
kwargs
):
self
.
search
.
run
()
return
self
.
search
.
plot_2D
(
'F0'
,
'F1'
,
**
kwargs
)
class
GridGlitchSearch
(
GridSearch
):
...
...
Write
Preview
Markdown
is supported
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