We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0c8183 commit 012dc5bCopy full SHA for 012dc5b
machine_learning_hep/processer.py
@@ -667,8 +667,7 @@ def load_cuts(self):
667
return
668
669
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)
+ self.logger.critical(f"You have %i but you passed %i cuts. Exit...", self.p_nptfinbins, len(raw_cuts))
672
if raw_mult_cuts and len(raw_mult_cuts) != self.p_nptfinbins:
673
print(f"You have {self.p_nptfinbins} but you passed {len(raw_mult_cuts)} cuts. Exit...")
674
sys.exit(1)
0 commit comments