Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic minmax limits #80

Merged
merged 9 commits into from
May 22, 2020
4 changes: 4 additions & 0 deletions anesthetic/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def __init__(self, *args, **kwargs):
self.root = None
super(MCMCSamples, self).__init__(*args, **kwargs)

for param in self.columns:
if param not in self.limits:
self.limits[param] = (self[param].min(), self[param].max())
williamjameshandley marked this conversation as resolved.
Show resolved Hide resolved

if logL is not None:
self['logL'] = logL
self.tex['logL'] = r'$\log\mathcal{L}$'
Expand Down
1 change: 0 additions & 1 deletion tests/example_data/pc.ranges
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
x0 None None
x1 None None
x2 0 None
x3 0 1