Skip to content

Commit 89a5e54

Browse files
committed
print out when toys fail
1 parent c41bb4d commit 89a5e54

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pyhf/infer/calculators.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,10 @@ def distributions(self, poi_test, track_progress=None):
806806
self.par_bounds,
807807
self.fixed_params,
808808
)
809-
except RuntimeError:
809+
except:
810810
if self.skip_failing_toys:
811811
value = None
812+
print(f'signal failed for: {sample}')
812813
else:
813814
raise
814815

@@ -826,9 +827,10 @@ def distributions(self, poi_test, track_progress=None):
826827
self.par_bounds,
827828
self.fixed_params,
828829
)
829-
except RuntimeError:
830+
except:
830831
if self.skip_failing_toys:
831832
value = None
833+
print(f'background failed for: {sample}')
832834
else:
833835
raise
834836

0 commit comments

Comments
 (0)