Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gregory Ashton
PyFstat
Commits
6d8c913e
Commit
6d8c913e
authored
Apr 21, 2017
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixing following update to current lalapps version
parent
fea5d7c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyfstat/core.py
+2
-2
2 additions, 2 deletions
pyfstat/core.py
tests.py
+2
-2
2 additions, 2 deletions
tests.py
with
4 additions
and
4 deletions
pyfstat/core.py
+
2
−
2
View file @
6d8c913e
...
@@ -1041,9 +1041,9 @@ transientTauDays={:1.3f}\n""")
...
@@ -1041,9 +1041,9 @@ transientTauDays={:1.3f}\n""")
if
self
.
add_noise
:
if
self
.
add_noise
:
cl
.
append
(
'
--sqrtSX=
"
{}
"'
.
format
(
self
.
sqrtSX
))
cl
.
append
(
'
--sqrtSX=
"
{}
"'
.
format
(
self
.
sqrtSX
))
if
self
.
minStartTime
is
None
:
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
:
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
:
if
self
.
maxStartTime
is
None
:
cl
.
append
(
'
--duration={}
'
.
format
(
int
(
self
.
duration
)))
cl
.
append
(
'
--duration={}
'
.
format
(
int
(
self
.
duration
)))
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
tests.py
+
2
−
2
View file @
6d8c913e
...
@@ -192,7 +192,7 @@ class TestMCMCSearch(Test):
...
@@ -192,7 +192,7 @@ class TestMCMCSearch(Test):
label
=
"
Test
"
label
=
"
Test
"
def
test_fully_coherent
(
self
):
def
test_fully_coherent
(
self
):
h0
=
1
e-24
h0
=
5
e-24
sqrtSX
=
1e-22
sqrtSX
=
1e-22
F0
=
30
F0
=
30
F1
=
-
1e-10
F1
=
-
1e-10
...
@@ -233,7 +233,7 @@ class TestMCMCSearch(Test):
...
@@ -233,7 +233,7 @@ class TestMCMCSearch(Test):
FS
>
predicted_FS
or
np
.
abs
((
FS
-
predicted_FS
))
/
predicted_FS
<
0.3
)
FS
>
predicted_FS
or
np
.
abs
((
FS
-
predicted_FS
))
/
predicted_FS
<
0.3
)
def
test_multi_stage
(
self
):
def
test_multi_stage
(
self
):
Writer
=
pyfstat
.
Writer
()
Writer
=
pyfstat
.
Writer
(
F0
=
10
)
Writer
.
make_cff
()
Writer
.
make_cff
()
theta
=
{
'
F0
'
:
{
'
type
'
:
'
norm
'
,
'
loc
'
:
10
,
'
scale
'
:
1e-2
},
theta
=
{
'
F0
'
:
{
'
type
'
:
'
norm
'
,
'
loc
'
:
10
,
'
scale
'
:
1e-2
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment