ejhigson / dyPolyChord

Super fast dynamic nested sampling with PolyChord (Python, C++ and Fortran likelihoods).
http://dypolychord.readthedocs.io/en/latest/
MIT License
22 stars 5 forks source link

AssertionError: Initial run contains threads not starting at -inf. #8

Open ajshajib opened 1 month ago

ajshajib commented 1 month ago

I am getting the following error after the whole sampling is finished, so I am not sure if this could be due to the sampler is initiated, or if it's an inherent bug.

Traceback (most recent call last):
  File "/home/ajshajib/miniconda3/envs/py38/lib/python3.8/site-packages/dyPolyChord/run_dynamic_ns.py", line 240, in run_dypolychord
    run = dyPolyChord.output_processing.process_dypolychord_run(
  File "/home/ajshajib/miniconda3/envs/py38/lib/python3.8/site-packages/dyPolyChord/output_processing.py", line 85, in process_dypolychord_run
    assert np.all(init['thread_min_max'][:, 0] == -np.inf), (
AssertionError: Initial run contains threads not starting at -inf.
thread_min_max=[[             -inf  -179426.0828854 ]
 [             -inf  -146467.01652276]
 [             -inf -1474480.47443647]
 ...
 [  -39549.68890576   -39548.17210043]
 [  -39549.68890576   -39548.15945656]
 [  -39549.68890576   -39547.58286016]]

The polychord version I'm using:

  version: 1.22.1
  release: 10th Jan 2024