Skip to content
Snippets Groups Projects
Commit 8b255a6e authored by Matthew Pitkin's avatar Matthew Pitkin
Browse files

pymultinest.py: set n_params to ndims

 - attempt to resolve lscsoft/bilby#459 for PyMultiNest >= 2.9
parent 4436ec59
No related branches found
No related tags found
1 merge request!723Resolve "CI failing on sampler tests"
......@@ -81,6 +81,10 @@ class Pymultinest(NestedSampler):
.format(self.kwargs['outputfiles_basename']))
check_directory_exists_and_if_not_mkdir(
self.kwargs['outputfiles_basename'])
# for PyMultiNest >=2.9 the n_params kwarg cannot be None
if self.kwargs["n_params"] == None:
self.kwargs["n_params"] = self.ndim
NestedSampler._verify_kwargs_against_default_kwargs(self)
def _apply_multinest_boundaries(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