Skip to content

Commit

Permalink
better printout when transformed parameter limits could not be estimated
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Apr 8, 2022
1 parent bdad622 commit ed1533b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ultranest/integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2732,8 +2732,8 @@ def print_results(self, use_unicode=True):
# add a bit of padding, but not outside parameter limits
lo, hi = edges[0], edges[-1]
step = edges[1] - lo
lo = max(self.transform_limits[i,0], lo - 2 * step)
hi = min(self.transform_limits[i,1], hi + 2 * step)
lo = max(min(lo, self.transform_limits[i,0]), lo - 2 * step)
hi = min(max(hi, self.transform_limits[i,1]), hi + 2 * step)
H, edges = np.histogram(v, bins=np.linspace(lo, hi, 40))
lo, hi = edges[0], edges[-1]

Expand Down

0 comments on commit ed1533b

Please sign in to comment.