Repository: scikit-hep/cabinetry

Issue:
Warnings about missing post-processed histograms
Warnings like

```
WARNING - cabinetry.histo - the modified histogram histograms/CR-Wy_RECAST_Signal_modified.npz does not exist
WARNING - cabinetry.histo - loading the un-modified histogram instead!
```

appear when `cabinetry.templates.postprocess(config)` is not called. The `WARNING` log level seems a bit high for this, it is really more of an information so should be updated accordingly.

cc @lukasheinrich for raising this (thanks!)

Discussion:
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/scikit-hep/cabinetry/pull/436?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep) Report
Patch coverage: **`100.00%`** and no project coverage change.
> Comparison is base [(`a0638e1`)](https://app.codecov.io/gh/scikit-hep/cabinetry/commit/a0638e18a6b7940c015c177a5b93f3167237e793?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep) 100.00% compared to head [(`89bad89`)](https://app.codecov.io/gh/scikit-hep/cabinetry/pull/436?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep) 100.00%.

<details><summary>Additional details and impacted files</summary>


```diff
@@            Coverage Diff            @@
##            master      #436   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         2072      2071    -1     
  Branches       338       338           
=========================================
- Hits          2072      2071    -1     
```


| [Files Changed](https://app.codecov.io/gh/scikit-hep/cabinetry/pull/436?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep) | Coverage Δ | |
|---|---|---|
| [src/cabinetry/histo.py](https://app.codecov.io/gh/scikit-hep/cabinetry/pull/436?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep#diff-c3JjL2NhYmluZXRyeS9oaXN0by5weQ==) | `100.00% <100.00%> (ø)` | |


</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/scikit-hep/cabinetry/pull/436?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scikit-hep).


Patch:
diff --git a/setup.py b/setup.py
index 4788201..fc7609e 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ extras_require["test"] = sorted(
             "mypy",
             "types-tabulate",
             "types-PyYAML",
-            "typeguard>=4.0.0,!=4.0.1,!=4.1.0,!=4.1.1",  # cabinetry#391, cabinetry#428
+            "typeguard>=4.0.0,!=4.0.1,!=4.1.*",  # cabinetry#391, cabinetry#428
             "black",
         ]
     )
diff --git a/src/cabinetry/histo.py b/src/cabinetry/histo.py
index 578591e..5a6d132 100644
--- a/src/cabinetry/histo.py
+++ b/src/cabinetry/histo.py
@@ -79,11 +79,10 @@ class Histogram(bh.Histogram, family=cabinetry):
         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"))


Test patch:
diff --git a/tests/test_histo.py b/tests/test_histo.py
index a1e607f..71a5ea1 100644
--- a/tests/test_histo.py
+++ b/tests/test_histo.py
@@ -122,13 +122,11 @@ def test_Histogram_from_path(tmp_path, caplog, example_histograms, histogram_hel
 
     # try loading a modified one, without success since it does not exist
     h_from_path_modified = histo.Histogram.from_path(tmp_path, modified=True)
-    expected_warning = (
-        f"the modified histogram {str(tmp_path)}_modified.npz does not exist"
+    expected_info = (
+        f"no modified histogram {str(tmp_path)}_modified.npz found, "
+        "loading un-modified histogram"
     )
-    assert expected_warning in [rec.message for rec in caplog.records]
-    assert "loading the un-modified histogram instead!" in [
-        rec.message for rec in caplog.records
-    ]
+    assert expected_info in [rec.message for rec in caplog.records]
     caplog.clear()
 
     # successfully load a modified histogram