Skip to content
Snippets Groups Projects
Commit 30afa845 authored by Colm Talbot's avatar Colm Talbot
Browse files

BUGFIX: Resolve "dynamic_dynesty requires nlive_init to be specified"

parent e73045f8
No related branches found
No related tags found
1 merge request!1185BUGFIX: Resolve "dynamic_dynesty requires nlive_init to be specified"
......@@ -17,7 +17,16 @@ class DynamicDynesty(Dynesty):
@property
def nlive(self):
return self.kwargs["nlive_init"]
"""
Users can either specify :code:`nlive_init` or :code:`nlive` (with
that precedence) or specify no value, in which case 500 is used.
"""
if self.kwargs["nlive_init"] is not None:
return self.kwargs["nlive_init"]
elif self.kwargs["nlive"] is not None:
return self.kwargs["nlive"]
else:
return 500
@property
def sampler_init(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