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
fed88110
Commit
fed88110
authored
5 years ago
by
Gregory Ashton
Browse files
Options
Downloads
Patches
Plain Diff
Fix dynamic dynesty
parent
73c3924f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bilby/core/sampler/__init__.py
+5
-5
5 additions, 5 deletions
bilby/core/sampler/__init__.py
bilby/core/sampler/dynamic_dynesty.py
+4
-3
4 additions, 3 deletions
bilby/core/sampler/dynamic_dynesty.py
test/sampler_test.py
+5
-0
5 additions, 0 deletions
test/sampler_test.py
with
14 additions
and
8 deletions
bilby/core/sampler/__init__.py
+
5
−
5
View file @
fed88110
...
...
@@ -8,8 +8,8 @@ from ..prior import PriorDict, DeltaFunction
from
.base_sampler
import
Sampler
,
SamplingMarginalisedParameterError
from
.cpnest
import
Cpnest
from
.dynesty
import
Dynesty
from
.dynamic_dynesty
import
DynamicDynesty
from
.dynesty
import
Dynesty
from
.emcee
import
Emcee
from
.kombine
import
Kombine
from
.nestle
import
Nestle
...
...
@@ -22,10 +22,10 @@ from .fake_sampler import FakeSampler
from
.
import
proposal
IMPLEMENTED_SAMPLERS
=
{
'
cpnest
'
:
Cpnest
,
'
dynesty
'
:
Dyn
esty
,
'
emcee
'
:
Emcee
,
'
kombine
'
:
Kombine
,
'
nestle
'
:
Nestle
,
'
ptemcee
'
:
Ptemcee
,
'
ptmcmcsampler
'
:
PTMCMCSampler
,
'
pymc3
'
:
Pymc3
,
'
pymultinest
'
:
Pymultinest
,
'
pypolychord
'
:
PyPolyChord
,
'
fake_sampler
'
:
FakeSampler
}
'
cpnest
'
:
Cpnest
,
'
dynamic_
dynesty
'
:
Dyn
amicDynesty
,
'
dynesty
'
:
Dynesty
,
'
emcee
'
:
Emcee
,
'
kombine
'
:
Kombine
,
'
nestle
'
:
Nestle
,
'
ptemcee
'
:
Ptemcee
,
'
ptmcmcsampler
'
:
PTMCMCSampler
,
'
pymc3
'
:
Pymc3
,
'
pymultinest
'
:
Pymultinest
,
'
pypolychord
'
:
PyPolyChord
,
'
fake_sampler
'
:
FakeSampler
}
if
command_line_args
.
sampler_help
:
sampler
=
command_line_args
.
sampler_help
...
...
This diff is collapsed.
Click to expand it.
bilby/core/sampler/dynamic_dynesty.py
+
4
−
3
View file @
fed88110
...
...
@@ -91,9 +91,10 @@ class DynamicDynesty(Dynesty):
def
__init__
(
self
,
likelihood
,
priors
,
outdir
=
'
outdir
'
,
label
=
'
label
'
,
use_ratio
=
False
,
plot
=
False
,
skip_import_verification
=
False
,
check_point
=
True
,
n_check_point
=
None
,
check_point_delta_t
=
600
,
resume
=
True
,
**
kwargs
):
super
(
DynamicDynesty
,
self
).
__init__
(
self
,
likelihood
=
likelihood
,
priors
=
priors
,
outdir
=
outdir
,
label
=
label
,
use_ratio
=
use_ratio
,
plot
=
plot
,
skip_import_verification
=
skip_import_verification
,
**
kwargs
)
super
(
DynamicDynesty
,
self
).
__init__
(
likelihood
=
likelihood
,
priors
=
priors
,
outdir
=
outdir
,
label
=
label
,
use_ratio
=
use_ratio
,
plot
=
plot
,
skip_import_verification
=
skip_import_verification
,
**
kwargs
)
self
.
n_check_point
=
n_check_point
self
.
check_point
=
check_point
self
.
resume
=
resume
...
...
This diff is collapsed.
Click to expand it.
test/sampler_test.py
+
5
−
0
View file @
fed88110
...
...
@@ -533,6 +533,11 @@ class TestRunningSamplers(unittest.TestCase):
likelihood
=
self
.
likelihood
,
priors
=
self
.
priors
,
sampler
=
'
dynesty
'
,
nlive
=
100
,
save
=
False
)
def
test_run_dynamic_dynesty
(
self
):
_
=
bilby
.
run_sampler
(
likelihood
=
self
.
likelihood
,
priors
=
self
.
priors
,
sampler
=
'
dynamic_dynesty
'
,
nlive
=
100
,
save
=
False
)
def
test_run_emcee
(
self
):
_
=
bilby
.
run_sampler
(
likelihood
=
self
.
likelihood
,
priors
=
self
.
priors
,
sampler
=
'
emcee
'
,
...
...
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