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
Gregory Ashton
PyFstat
Commits
6d8c913e
Commit
6d8c913e
authored
Apr 21, 2017
by
Gregory Ashton
Browse files
Minor fixing following update to current lalapps version
parent
fea5d7c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
pyfstat/core.py
View file @
6d8c913e
...
...
@@ -1041,9 +1041,9 @@ transientTauDays={:1.3f}\n""")
if
self
.
add_noise
:
cl
.
append
(
'--sqrtSX="{}"'
.
format
(
self
.
sqrtSX
))
if
self
.
minStartTime
is
None
:
cl
.
append
(
'--startTime={:
1
0.0f}'
.
format
(
float
(
self
.
tstart
)))
cl
.
append
(
'--startTime={:0.0f}'
.
format
(
float
(
self
.
tstart
)))
else
:
cl
.
append
(
'--startTime={:
1
0.0f}'
.
format
(
float
(
self
.
minStartTime
)))
cl
.
append
(
'--startTime={:0.0f}'
.
format
(
float
(
self
.
minStartTime
)))
if
self
.
maxStartTime
is
None
:
cl
.
append
(
'--duration={}'
.
format
(
int
(
self
.
duration
)))
else
:
...
...
tests.py
View file @
6d8c913e
...
...
@@ -192,7 +192,7 @@ class TestMCMCSearch(Test):
label
=
"Test"
def
test_fully_coherent
(
self
):
h0
=
1
e-24
h0
=
5
e-24
sqrtSX
=
1e-22
F0
=
30
F1
=
-
1e-10
...
...
@@ -233,7 +233,7 @@ class TestMCMCSearch(Test):
FS
>
predicted_FS
or
np
.
abs
((
FS
-
predicted_FS
))
/
predicted_FS
<
0.3
)
def
test_multi_stage
(
self
):
Writer
=
pyfstat
.
Writer
()
Writer
=
pyfstat
.
Writer
(
F0
=
10
)
Writer
.
make_cff
()
theta
=
{
'F0'
:
{
'type'
:
'norm'
,
'loc'
:
10
,
'scale'
:
1e-2
},
...
...
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