Skip to content

Commit

Permalink
degrade warning message about missing modified histogram to info level
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-held committed Sep 19, 2023
1 parent a0638e1 commit 6290a69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cabinetry/histo.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ def from_path(
if modified:
histo_path_modified = histo_path.parent / (histo_path.name + "_modified")
if not histo_path_modified.with_suffix(".npz").exists():
log.warning(
f"the modified histogram {histo_path_modified.with_suffix('.npz')} "
"does not exist"
log.info(
f"no modified histogram {histo_path_modified.with_suffix('.npz')} "
"found, loading un-modified histogram"
)
log.warning("loading the un-modified histogram instead!")
else:
histo_path = histo_path_modified
histogram_npz = np.load(histo_path.with_suffix(".npz"))
Expand Down

0 comments on commit 6290a69

Please sign in to comment.