Skip to content

Commit

Permalink
avoid undefined tregion and build_tregion properties
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesBuchner committed Dec 9, 2020
1 parent 189e7a4 commit 839476e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ultranest/integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ def __init__(self,
self.draw_multiple = draw_multiple
self.ndraw_min = ndraw_min
self.ndraw_max = ndraw_max
self.build_tregion = transform is not None
if not self._check_likelihood_function(transform, loglike, num_test_samples):
assert self.log_to_disk
if resume_similar and self.log_to_disk:
Expand Down Expand Up @@ -2235,6 +2236,7 @@ def run_iter(

self.transformLayer = None
self.region = None
self.tregion = None
it_at_first_region = 0
self.ib = 0
self.samples = []
Expand Down

0 comments on commit 839476e

Please sign in to comment.