diff --git a/changelog.md b/changelog.md index 9e75f40..5d39614 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ - Add container image documentation and generic Slurm/HTCondor submission scripts with config-driven component enumeration [#160](https://github.com/umami-hep/umami-preprocessing/pull/160) ### [v0.3.2](https://github.com/umami-hep/umami-preprocessing/releases/tag/v0.3.2) (04.08.2026) +- Remove assert check for zero standard deviation on features in normalization step - Add new configs for central dataset [#159](https://github.com/umami-hep/umami-preprocessing/pull/159) - Generalise the framework beyond jets to arbitrary global objects [#156](https://github.com/umami-hep/umami-preprocessing/pull/156) diff --git a/upp/stages/normalisation.py b/upp/stages/normalisation.py index c2bc361..a35c0cf 100644 --- a/upp/stages/normalisation.py +++ b/upp/stages/normalisation.py @@ -210,7 +210,6 @@ def write_norm_dict(self, norm_dict: dict) -> None: assert not np.isinf(tf["std"]), f"{var} std is not finite" assert not np.isnan(tf["mean"]), f"{var} mean is nan" assert not np.isnan(tf["std"]), f"{var} std is nan" - assert tf["std"] != 0, f"{var} std is 0" with open(self.norm_fname, "w") as file: yaml.dump(norm_dict, file, sort_keys=False)