Skip to content
Snippets Groups Projects
Commit 196d43a2 authored by Matthew David Pitkin's avatar Matthew David Pitkin
Browse files

Update emcee.py: don't try loading checkpoint file it is has zero size

parent 38b603c0
No related branches found
No related tags found
No related merge requests found
......@@ -310,7 +310,11 @@ class Emcee(MCMCSampler):
"""
if hasattr(self, "_sampler"):
pass
elif self.resume and os.path.isfile(self.checkpoint_info.sampler_file):
elif (
self.resume and
os.path.isfile(self.checkpoint_info.sampler_file) and
os.path.getsize(self.checkpoint_info.sampler_file)
):
import dill
logger.info(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment