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
c847c753
Commit
c847c753
authored
5 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
Improve log messages for dynesty resume
parent
917637e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!748
WIP: Improve dynesty checkpointing II
,
!746
Pickle dump entire sampler in dynesty
Pipeline
#111811
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/sampler/dynesty.py
+5
-4
5 additions, 4 deletions
bilby/core/sampler/dynesty.py
with
5 additions
and
4 deletions
bilby/core/sampler/dynesty.py
+
5
−
4
View file @
c847c753
...
...
@@ -320,9 +320,9 @@ class Dynesty(NestedSampler):
def
_run_external_sampler_with_checkpointing
(
self
):
logger
.
debug
(
"
Running sampler with checkpointing
"
)
if
self
.
resume
:
resume
=
self
.
read_saved_state
(
continuing
=
True
)
if
resume
:
logger
.
info
(
'
Resum
ing from previous run
.
'
)
resume
_file_loaded
=
self
.
read_saved_state
(
continuing
=
True
)
if
resume
_file_loaded
:
logger
.
info
(
'
Resum
e file successfully loaded
.
'
)
old_ncall
=
self
.
sampler
.
ncall
sampler_kwargs
=
self
.
sampler_function_kwargs
.
copy
()
...
...
@@ -366,8 +366,8 @@ class Dynesty(NestedSampler):
Whether the run is continuing or terminating, if True, the loaded
state is mostly written back to disk.
"""
logger
.
info
(
"
Reading resume file {}
"
.
format
(
self
.
resume_file
))
if
os
.
path
.
isfile
(
self
.
resume_file
):
logger
.
info
(
"
Reading resume file {}
"
.
format
(
self
.
resume_file
))
with
open
(
self
.
resume_file
,
'
rb
'
)
as
file
:
self
.
sampler
=
dill
.
load
(
file
)
if
self
.
sampler
.
added_live
and
continuing
:
...
...
@@ -376,6 +376,7 @@ class Dynesty(NestedSampler):
self
.
sampler
.
rstate
=
np
.
random
self
.
start_time
=
self
.
sampler
.
kwargs
.
pop
(
"
start_time
"
)
self
.
sampling_time
=
self
.
sampler
.
kwargs
.
pop
(
"
sampling_time
"
)
return
True
else
:
logger
.
debug
(
"
Resume file {} does not exist.
"
.
format
(
self
.
resume_file
))
...
...
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