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
2adef425
Commit
2adef425
authored
Oct 06, 2017
by
Gregory Ashton
Browse files
Loosen tests constraints
parent
5631b2f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
2adef425
...
...
@@ -133,7 +133,7 @@ class TestComputeFstat(Test):
FS
=
search_H1L1
.
get_fullycoherent_twoF
(
Writer
.
tstart
,
Writer
.
tend
,
Writer
.
F0
,
Writer
.
F1
,
Writer
.
F2
,
Writer
.
Alpha
,
Writer
.
Delta
)
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS
)
/
FS
<
0.
2
)
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS
)
/
FS
<
0.
3
)
Writer
.
detectors
=
'H1'
predicted_FS
=
Writer
.
predict_fstat
()
...
...
@@ -144,7 +144,7 @@ class TestComputeFstat(Test):
FS
=
search_H1
.
get_fullycoherent_twoF
(
Writer
.
tstart
,
Writer
.
tend
,
Writer
.
F0
,
Writer
.
F1
,
Writer
.
F2
,
Writer
.
Alpha
,
Writer
.
Delta
)
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS
)
/
FS
<
0.
2
)
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS
)
/
FS
<
0.
3
)
def
run_computefstatistic_single_point_no_noise
(
self
):
Writer
=
pyfstat
.
Writer
(
...
...
@@ -179,7 +179,7 @@ class TestComputeFstat(Test):
Writer
.
Alpha
,
Writer
.
Delta
)
Writer
.
make_data
()
predicted_FS
=
Writer
.
predict_fstat
()
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS_from_file
)
/
FS_from_file
<
0.
2
)
self
.
assertTrue
(
np
.
abs
(
predicted_FS
-
FS_from_file
)
/
FS_from_file
<
0.
3
)
injectSourcesdict
=
pyfstat
.
core
.
read_par
(
Writer
.
config_file_name
)
injectSourcesdict
[
'F0'
]
=
injectSourcesdict
[
'Freq'
]
...
...
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