Skip to content

Commit

Permalink
give debug warnings when handling for plateaus and linearly dependent…
Browse files Browse the repository at this point in the history
… situations
  • Loading branch information
JohannesBuchner committed Sep 16, 2021
1 parent fd1f68d commit 324ffe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ultranest/integrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,8 @@ def _should_node_be_expanded(
return False

if not live_points_healthy:
if self.log:
self.logger.debug("not expanding, because live points are linearly dependent")
return False

# some reasons to stop:
Expand All @@ -2034,6 +2036,8 @@ def _should_node_be_expanded(

# in a plateau, only shrink (Fowlie+2020)
if (Lmin == parallel_values).sum() > 1:
if self.log:
self.logger.debug("Plateau detected at L=%e, not replacing live point." % Lmin)
return False

expand_node = False
Expand Down

0 comments on commit 324ffe5

Please sign in to comment.