Skip to content

Commit 012dc5b

Browse files
DelloStrittoqgp
andauthored
Update machine_learning_hep/processer.py
Co-authored-by: Jochen Klein <[email protected]>
1 parent d0c8183 commit 012dc5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

machine_learning_hep/processer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,7 @@ def load_cuts(self):
667667
return
668668

669669
if raw_cuts and len(raw_cuts) != self.p_nptfinbins:
670-
print(f"You have {self.p_nptfinbins} but you passed {len(raw_cuts)} cuts. Exit...")
671-
sys.exit(1)
670+
self.logger.critical(f"You have %i but you passed %i cuts. Exit...", self.p_nptfinbins, len(raw_cuts))
672671
if raw_mult_cuts and len(raw_mult_cuts) != self.p_nptfinbins:
673672
print(f"You have {self.p_nptfinbins} but you passed {len(raw_mult_cuts)} cuts. Exit...")
674673
sys.exit(1)

0 commit comments

Comments
 (0)