From 324ffe5e66d94259322960bf390f7665a435b982 Mon Sep 17 00:00:00 2001 From: Johannes Buchner Date: Fri, 3 Sep 2021 13:15:23 +0200 Subject: [PATCH] give debug warnings when handling for plateaus and linearly dependent situations --- ultranest/integrator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ultranest/integrator.py b/ultranest/integrator.py index a8c83c64..f8b69bbc 100644 --- a/ultranest/integrator.py +++ b/ultranest/integrator.py @@ -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: @@ -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