Skip to content
Snippets Groups Projects
Commit bf03a241 authored by Christopher Philip Luke Berry's avatar Christopher Philip Luke Berry
Browse files

Merge branch '644-bilby-mcmc-sampler-gets-stuck-when-checkpoint-fails' into 'master'

Resolve "Bilby MCMC: Sampler gets stuck when checkpoint fails"

Closes #644

See merge request !1151
parents b364e538 57406e0b
No related branches found
No related tags found
1 merge request!1151Resolve "Bilby MCMC: Sampler gets stuck when checkpoint fails"
Pipeline #459670 passed
......@@ -2,6 +2,7 @@ import datetime
import os
import time
from collections import Counter
from pathlib import Path
import numpy as np
import pandas as pd
......@@ -387,9 +388,10 @@ class Bilby_MCMC(MCMCSampler):
logger.info("Written checkpoint file {}".format(self.resume_file))
else:
logger.warning(
"Cannot write pickle resume file! "
"Job will not resume if interrupted."
"Cannot write pickle resume file! Job may not resume if interrupted."
)
# Touch the file to postpone next check-point attempt
Path(self.resume_file).touch(exist_ok=True)
self.ptsampler.pool = _pool
def print_long_progress(self):
......
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