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
f4541d32
Commit
f4541d32
authored
6 years ago
by
Matthew Pitkin
Browse files
Options
Downloads
Patches
Plain Diff
Update emcee.py: slight fix in case passing newer argument names as keywords
parent
9357d52b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!340
Allow emcee to work with pre-release versions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/sampler/emcee.py
+6
-4
6 additions, 4 deletions
bilby/core/sampler/emcee.py
with
6 additions
and
4 deletions
bilby/core/sampler/emcee.py
+
6
−
4
View file @
f4541d32
...
...
@@ -79,14 +79,16 @@ class Emcee(MCMCSampler):
function_kwargs
[
'
p0
'
]
=
self
.
pos0
if
LooseVersion
(
emcee
.
__version__
)
>
LooseVersion
(
'
2.2.1
'
):
for
key
in
updatekeys
:
function_kwargs
[
updatekeys
[
key
]]
=
function_kwargs
.
pop
(
key
)
if
function_kwargs
[
'
mh_proposal
'
]
is
not
None
:
logger
.
warning
(
"
The
'
mh_proposal
'
option is no longer used
"
"
in emcee v{}, and will be ignored.
"
.
format
(
emcee
.
__version__
))
del
function_kwargs
[
'
mh_proposal
'
]
for
key
in
updatekeys
:
if
updatekeys
[
key
]
not
in
function_kwargs
:
function_kwargs
[
updatekeys
[
key
]]
=
function_kwargs
.
pop
(
key
)
else
:
del
function_kwargs
[
key
]
return
function_kwargs
...
...
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