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
418e91cc
Commit
418e91cc
authored
2 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
Fix reconstruction tests
parent
f4618b53
No related branches found
No related tags found
1 merge request
!1111
Use marginalized_parameters attribute for reconstruction
Pipeline
#409078
passed
2 years ago
Stage: initial
Stage: test
Stage: docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gw/likelihood_test.py
+6
-5
6 additions, 5 deletions
test/gw/likelihood_test.py
with
6 additions
and
5 deletions
test/gw/likelihood_test.py
+
6
−
5
View file @
418e91cc
...
...
@@ -650,16 +650,16 @@ class TestMarginalizations(unittest.TestCase):
)
@parameterized.expand
(
itertools
.
product
(
*
itertools
.
repeat
([
True
,
False
],
3
)),
itertools
.
product
(
[
"
regular
"
,
"
roq
"
],
*
itertools
.
repeat
([
True
,
False
],
3
)),
name_func
=
lambda
func
,
num
,
param
:
(
f
"
{
func
.
__name__
}
_
{
num
}
_
"
+
"
_
"
.
join
([
f
"
{
func
.
__name__
}
_
{
num
}
_
_
{
param
.
args
[
0
]
}
_
"
+
"
_
"
.
join
([
[
"
D
"
,
"
P
"
,
"
T
"
][
ii
]
for
ii
,
val
in
enumerate
(
param
.
args
)
if
val
in
enumerate
(
param
.
args
[
1
:]
)
if
val
])
)
)
def
test_marginalization_reconstruction
(
self
,
distance
,
phase
,
time
):
if
time
and
"
ROQ
"
in
self
.
__class__
.
__name__
:
def
test_marginalization_reconstruction
(
self
,
kind
,
distance
,
phase
,
time
):
if
time
and
kind
==
"
roq
"
:
pytest
.
skip
(
"
Time reconstruction not supported for ROQ likelihood
"
)
marginalizations
=
dict
(
geocent_time
=
time
,
...
...
@@ -667,6 +667,7 @@ class TestMarginalizations(unittest.TestCase):
phase
=
phase
,
)
like
=
self
.
get_likelihood
(
kind
=
kind
,
distance_marginalization
=
distance
,
time_marginalization
=
time
,
phase_marginalization
=
phase
,
...
...
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