Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
5a85d8e0
Commit
5a85d8e0
authored
6 years ago
by
MoritzThomasHuebner
Browse files
Options
Downloads
Patches
Plain Diff
Moved tests for repr in here
parent
626b7885
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!170
Resolve "Add more __repr__ methods"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gw_likelihood_tests.py
+11
-0
11 additions, 0 deletions
test/gw_likelihood_tests.py
with
11 additions
and
0 deletions
test/gw_likelihood_tests.py
+
11
−
0
View file @
5a85d8e0
...
...
@@ -61,6 +61,11 @@ class TestBasicGWTransient(unittest.TestCase):
np
.
nan_to_num
(
-
np
.
inf
))
self
.
likelihood
.
waveform_generator
.
parameters
[
'
mass_2
'
]
=
29
def
test_repr
(
self
):
expected
=
'
BasicGravitationalWaveTransient(interferometers={},
\n\t
waveform_generator={})
'
.
format
(
self
.
interferometers
,
self
.
waveform_generator
)
self
.
assertEqual
(
expected
,
repr
(
self
.
likelihood
))
class
TestGWTransient
(
unittest
.
TestCase
):
...
...
@@ -133,6 +138,12 @@ class TestGWTransient(unittest.TestCase):
np
.
nan_to_num
(
-
np
.
inf
))
self
.
likelihood
.
waveform_generator
.
parameters
[
'
mass_2
'
]
=
29
def
test_repr
(
self
):
expected
=
'
GravitationalWaveTransient(interferometers={},
\n\t
waveform_generator={},
\n\t
'
\
'
time_marginalization={}, distance_marginalization={}, phase_marginalization={},
'
\
'
prior={})
'
.
format
(
self
.
interferometers
,
self
.
waveform_generator
,
False
,
False
,
False
,
self
.
prior
)
self
.
assertEqual
(
expected
,
repr
(
self
.
likelihood
))
class
TestTimeMarginalization
(
unittest
.
TestCase
):
...
...
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