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
2e3de45a
Commit
2e3de45a
authored
Aug 01, 2017
by
Gregory Ashton
Browse files
Remove obsolete tests
parent
efd81d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
2e3de45a
...
...
@@ -249,41 +249,6 @@ class TestMCMCSearch(Test):
search
.
run
(
create_plots
=
False
)
class
TestAuxillaryFunctions
(
Test
):
nsegs
=
10
minStartTime
=
1e9
maxStartTime
=
minStartTime
+
100
*
86400
tref
=
.
5
*
(
minStartTime
+
maxStartTime
)
DeltaOmega
=
1e-2
DeltaFs
=
[
1e-4
,
1e-14
]
fiducial_freq
=
100
detector_names
=
[
'H1'
,
'L1'
]
earth_ephem
,
sun_ephem
=
pyfstat
.
helper_functions
.
set_up_ephemeris_configuration
()
def
test_get_V_estimate_sky_F0_F1
(
self
):
out
=
pyfstat
.
optimal_setup_functions
.
get_V_estimate
(
self
.
nsegs
,
self
.
tref
,
self
.
minStartTime
,
self
.
maxStartTime
,
self
.
DeltaOmega
,
self
.
DeltaFs
,
self
.
fiducial_freq
,
self
.
detector_names
,
self
.
earth_ephem
,
self
.
sun_ephem
)
V
,
Vsky
,
Vpe
=
out
self
.
assertTrue
(
V
==
Vsky
*
Vpe
)
self
.
__class__
.
Vpe_COMPUTED_WITH_SKY
=
Vpe
def
test_get_V_estimate_F0_F1
(
self
):
out
=
pyfstat
.
optimal_setup_functions
.
get_V_estimate
(
self
.
nsegs
,
self
.
tref
,
self
.
minStartTime
,
self
.
maxStartTime
,
self
.
DeltaOmega
,
self
.
DeltaFs
,
self
.
fiducial_freq
,
self
.
detector_names
,
self
.
earth_ephem
,
self
.
sun_ephem
)
V
,
Vsky
,
Vpe
=
out
self
.
assertTrue
(
V
==
Vsky
*
Vpe
)
self
.
__class__
.
Vpe_COMPUTED_WITHOUT_SKY
=
Vpe
def
test_the_equivalence_of_Vpe
(
self
):
"""Tests if the Vpe computed with and without the sky are equal """
self
.
assertEqual
(
self
.
__class__
.
Vpe_COMPUTED_WITHOUT_SKY
,
self
.
__class__
.
Vpe_COMPUTED_WITH_SKY
)
if
__name__
==
'__main__'
:
outdir
=
'TestData'
if
os
.
path
.
isdir
(
outdir
):
...
...
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