While running the notebooks I stumbled up on this bug:
File "/tmp/qq.py", line 28, in <module>
dsampler2.run_nested(maxiter=50000, use_stop=False)
File "/home/skoposov/pyenv38/lib/python3.8/site-packages/dynesty/dynamicsampler.py", line 1810, in run_nested
passback = self.add_batch(
File "/home/skoposov/pyenv38/lib/python3.8/site-packages/dynesty/dynamicsampler.py", line 1973, in add_batch
for cur_results in self.sample_batch(nlive_new=nlive,
File "/home/skoposov/pyenv38/lib/python3.8/site-packages/dynesty/dynamicsampler.py", line 1392, in sample_batch
for it, results in enumerate(batch_sampler.add_live_points()):
File "/home/skoposov/pyenv38/lib/python3.8/site-packages/dynesty/sampler.py", line 407, in add_live_points
logvols = self.saved_run.D['logvol'][-1]
IndexError: list index out of range
Batch sampling starting (with low logl boundary of -inf)
Batch exhausting all the allowed iterations while creating nlive samples for the batch
then sampling being no-op because of maxiter=0
Failing in add_live_points because() there are no saved points to pick information such as logl/logvol from (and because we started from logl=-inf, so we didn't reuse any points from previous runs)
I this patch I fix the issue by fudging the logvol/logl arrays in the batch_sampler.
This is not a pretty solution, but the best I could come up with.
While running the notebooks I stumbled up on this bug:
This can be reproduced with this:
This can be explained by
I this patch I fix the issue by fudging the logvol/logl arrays in the batch_sampler. This is not a pretty solution, but the best I could come up with.