Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Sylvia Biscoveanu
bilby
Commits
f76f3549
Commit
f76f3549
authored
6 years ago
by
Moritz Huebner
Committed by
Gregory Ashton
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Switches on checkpointing by default in cpnest
parent
4338eff2
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
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
bilby/core/sampler/cpnest.py
+2
-2
2 additions, 2 deletions
bilby/core/sampler/cpnest.py
test/sampler_test.py
+2
-2
2 additions, 2 deletions
test/sampler_test.py
with
5 additions
and
4 deletions
CHANGELOG.md
+
1
−
0
View file @
f76f3549
...
...
@@ -14,6 +14,7 @@
-
Use pickling to store the dynesty resume file and add a write-to-resume on SIGINT/SIGKILL
-
Bug fix in ROQ likelihood
-
Distance and phase marginalisation work with ROQ likelihood
-
Cpnest now creates checkpoints (resume files) by default
### Removed
-
...
...
This diff is collapsed.
Click to expand it.
bilby/core/sampler/cpnest.py
+
2
−
2
View file @
f76f3549
...
...
@@ -28,7 +28,7 @@ class Cpnest(NestedSampler):
The maximum number of MCMC steps to take
verbose: Bool (True)
If true, print information information about the convergence during
resume: Bool (
Fals
e)
resume: Bool (
Tru
e)
Whether or not to resume from a previous run
output: str
Where to write the CPNest, by default this is
...
...
@@ -36,7 +36,7 @@ class Cpnest(NestedSampler):
"""
default_kwargs
=
dict
(
verbose
=
1
,
nthreads
=
1
,
nlive
=
500
,
maxmcmc
=
1000
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Fals
e
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Tru
e
,
output
=
None
)
def
_translate_kwargs
(
self
,
kwargs
):
...
...
This diff is collapsed.
Click to expand it.
test/sampler_test.py
+
2
−
2
View file @
f76f3549
...
...
@@ -112,13 +112,13 @@ class TestCPNest(unittest.TestCase):
def
test_default_kwargs
(
self
):
expected
=
dict
(
verbose
=
1
,
nthreads
=
1
,
nlive
=
500
,
maxmcmc
=
1000
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Fals
e
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Tru
e
,
output
=
'
outdir/cpnest_label/
'
)
self
.
assertDictEqual
(
expected
,
self
.
sampler
.
kwargs
)
def
test_translate_kwargs
(
self
):
expected
=
dict
(
verbose
=
1
,
nthreads
=
1
,
nlive
=
250
,
maxmcmc
=
1000
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Fals
e
,
seed
=
None
,
poolsize
=
100
,
nhamiltonian
=
0
,
resume
=
Tru
e
,
output
=
'
outdir/cpnest_label/
'
)
for
equiv
in
bilby
.
core
.
sampler
.
base_sampler
.
NestedSampler
.
npoints_equiv_kwargs
:
new_kwargs
=
self
.
sampler
.
kwargs
.
copy
()
...
...
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