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
cba643d4
Commit
cba643d4
authored
6 years ago
by
Moritz
Browse files
Options
Downloads
Patches
Plain Diff
Switched on checkpointing by default in cpnest
parent
937b6349
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#50762
failed
6 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
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
+1
-1
1 addition, 1 deletion
test/sampler_test.py
with
4 additions
and
3 deletions
CHANGELOG.md
+
1
−
0
View file @
cba643d4
...
...
@@ -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 @
cba643d4
...
...
@@ -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
+
1
−
1
View file @
cba643d4
...
...
@@ -112,7 +112,7 @@ 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
)
...
...
This diff is collapsed.
Click to expand it.
Moritz Huebner
@moritz.huebner
mentioned in commit
b32466eb
·
6 years ago
mentioned in commit
b32466eb
mentioned in commit b32466eb476e529972a2125630daed767693d0e0
Toggle commit list
Moritz Huebner
@moritz.huebner
mentioned in merge request
!387 (merged)
·
6 years ago
mentioned in merge request
!387 (merged)
mentioned in merge request !387
Toggle commit list
Paul Lasky
@paul-lasky
mentioned in commit
3741310b
·
6 years ago
mentioned in commit
3741310b
mentioned in commit 3741310bca1b9988b94f503a314f4c5f2bc102b7
Toggle commit list
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