Skip to content

Commit

Permalink
check if correct file is being looked for
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Oct 30, 2024
1 parent 555663f commit 86b36aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validphys2/src/validphys/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ def check_fit_cuts(self, commondata, fit):
# In order to enforce the usage of the new names, only (1.) will be implemented

if not cuts_path.parent.exists():
import ipdb; ipdb.set_trace()
if commondata.legacy_names is None:
raise CutsNotFound(f"Bad filter configuration. Could not find {cuts_path.parent}")

Expand All @@ -798,7 +799,7 @@ def check_fit_cuts(self, commondata, fit):
cuts_path = old_dir / f"FKMASK_{old_name}.dat"
break
else:
raise CutsNotFound(f"Bad filter configuration. Could not find {cuts_path.parent}")
raise CutsNotFound(f"Bad filter configuration. Could not find {old_dir.parent}")

if not cuts_path.exists():
cuts_path = None
Expand Down

0 comments on commit 86b36aa

Please sign in to comment.