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
40937470
Commit
40937470
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
fix fill_priors to deal with bad waveform generator variables
parent
33059813
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!23
implement prior generation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
peyote/prior.py
+7
-2
7 additions, 2 deletions
peyote/prior.py
with
7 additions
and
2 deletions
peyote/prior.py
+
7
−
2
View file @
40937470
...
...
@@ -382,10 +382,15 @@ def fill_priors(prior, waveform_generator, fixed=None):
print
(
"
{} cannot be converted to delta function prior.
"
.
format
(
key
))
print
(
"
If required the default prior will be used.
"
)
bad_keys
.
append
(
key
)
for
key
in
bad_keys
:
prior
.
pop
(
key
)
missing_keys
=
set
(
waveform_generator
.
parameters
)
-
set
(
prior
.
keys
())
for
missing_key
in
missing_keys
:
prior
[
missing_key
]
=
create_default_prior
(
missing_key
)
if
prior
[
missing_key
]
is
None
:
print
(
"
No default prior found for unspecified variable {}.
"
.
format
(
missing_key
))
print
(
"
This variable will NOT be sampled.
"
)
bad_keys
.
append
(
missing_key
)
for
key
in
bad_keys
:
prior
.
pop
(
key
)
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