dynamic_dynesty requires nlive_init to be specified
Hi there,
I recently decided it was time to update my version of Bilby. I made a clean environment and installed Bilby 1.4 (which came with dynesty 2.0.3) and the dynamic_dynesty sampler no longer works.
To make sure it wasn't my code, I tried the example script gaussian_process_george_example.py in the repo, just changing the sampler to dynamic_dynesty (on line 118) and the script fails with the following error:
15:34 bilby INFO : Checkpoint every check_point_delta_t = 600s
15:34 bilby INFO : Using dynesty version 2.0.3
15:34 bilby INFO : Resume file outdir/gaussian_process_george_example_resume.pickle does not exist.
15:34 bilby INFO : Generating initial points from the prior
Traceback (most recent call last):
File "/Users/eker0753/Documents/Code/raised_fitting/gaussian_process_george_example.py", line 113, in
result = bilby.run_sampler(
File "/opt/miniconda3/envs/testRaiSED/lib/python3.10/site-packages/bilby/core/sampler/init.py", line 234, in run_sampler
result = sampler.run_sampler()
File "/opt/miniconda3/envs/testRaiSED/lib/python3.10/site-packages/bilby/core/sampler/base_sampler.py", line 97, in wrapped
output = method(self, *args, **kwargs)
File "/opt/miniconda3/envs/testRaiSED/lib/python3.10/site-packages/bilby/core/sampler/dynesty.py", line 404, in run_sampler
self.kwargs["live_points"] = self.get_initial_points_from_prior(
File "/opt/miniconda3/envs/testRaiSED/lib/python3.10/site-packages/bilby/core/sampler/base_sampler.py", line 575, in get_initial_points_from_prior
while len(unit_cube) < npoints:
TypeError: '<' not supported between instances of 'int' and 'NoneType'
Best, Emily