From 89a5e54c33001ce832ae26108dbd39c4cbcd3cfb Mon Sep 17 00:00:00 2001 From: Giordon Stark Date: Fri, 5 Jul 2024 16:20:53 -0700 Subject: [PATCH] print out when toys fail --- src/pyhf/infer/calculators.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pyhf/infer/calculators.py b/src/pyhf/infer/calculators.py index e74f002db6..63fc31aae8 100644 --- a/src/pyhf/infer/calculators.py +++ b/src/pyhf/infer/calculators.py @@ -806,9 +806,10 @@ def distributions(self, poi_test, track_progress=None): self.par_bounds, self.fixed_params, ) - except RuntimeError: + except: if self.skip_failing_toys: value = None + print(f'signal failed for: {sample}') else: raise @@ -826,9 +827,10 @@ def distributions(self, poi_test, track_progress=None): self.par_bounds, self.fixed_params, ) - except RuntimeError: + except: if self.skip_failing_toys: value = None + print(f'background failed for: {sample}') else: raise