Repeated calls to nested sampler
@colm.talbot this may be a non-issue, but here (https://git.ligo.org/Monash/tupak/blob/master/tupak/core/sampler.py#L535):
while True:
maxcall += self.kwargs['n_check_point']
nested_sampler.run_nested(
dlogz=self.kwargs['dlogz'],
print_progress=self.kwargs['verbose'],
print_func=self._print_func, maxcall=maxcall,
add_live=False)
if nested_sampler.ncall == old_ncall:
break
old_ncall = nested_sampler.ncall
self.write_current_state(nested_sampler)
self.read_saved_state(nested_sampler)
nested_sampler.run_nested(
dlogz=self.kwargs['dlogz'],
print_progress=self.kwargs['verbose'],
print_func=self._print_func, add_live=True)
It looks like the sampler runs, then saves itself and runs again. I'm not sure why. Ideally, it should only ever save the state when required. Am I missing something?