Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bilby
Commits
ad2f5497
Commit
ad2f5497
authored
Jun 11, 2019
by
Colm Talbot
Committed by
Gregory Ashton
Jun 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dynesty from __getstate__
parent
206f412b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
bilby/core/sampler/dynesty.py
bilby/core/sampler/dynesty.py
+6
-0
No files found.
bilby/core/sampler/dynesty.py
View file @
ad2f5497
...
...
@@ -121,6 +121,12 @@ class Dynesty(NestedSampler):
signal
.
signal
(
signal
.
SIGINT
,
self
.
write_current_state_and_exit
)
signal
.
signal
(
signal
.
SIGALRM
,
self
.
write_current_state_and_exit
)
def
__getstate__
(
self
):
""" For pickle: remove external_sampler, which can be an unpicklable "module" """
state
=
self
.
__dict__
.
copy
()
del
state
[
'external_sampler'
]
return
state
@
property
def
sampler_function_kwargs
(
self
):
keys
=
[
'dlogz'
,
'print_progress'
,
'print_func'
,
'maxiter'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment