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

Merge branch '659-dynamic_dynesty-requires-nlive_init-to-be-specified' into 'master'

BUGFIX: Resolve "dynamic_dynesty requires nlive_init to be specified"

Closes #659

See merge request !1185
parents 985ddbe5 30afa845
No related branches found
No related tags found
Loading
Checking pipeline status
......@@ -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