From b900b6b5a8b2a15448b2d4579a7f2ab9ca566d9f Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 18 Jan 2024 06:54:56 -0500 Subject: [PATCH 1/3] bugfix in signal injection --- src/spey_pyhf/simplify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spey_pyhf/simplify.py b/src/spey_pyhf/simplify.py index 7dc0730..ecee6a9 100644 --- a/src/spey_pyhf/simplify.py +++ b/src/spey_pyhf/simplify.py @@ -190,7 +190,7 @@ def __call__( for channel in interpreter.get_channels(control_region_indices): interpreter.inject_signal( channel, - [0.0] * signal_patch_map[channel]["data"], + [0.0] * len(signal_patch_map[channel]["data"]), signal_patch_map[channel]["modifiers"] if include_modifiers_in_control_model else None, From 3f7d533564df6a23493bf12ea273760099a90b03 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 18 Jan 2024 07:06:57 -0500 Subject: [PATCH 2/3] update changelog --- docs/releases/changelog-v0.1.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/releases/changelog-v0.1.md b/docs/releases/changelog-v0.1.md index fae1ac6..7ca8b35 100644 --- a/docs/releases/changelog-v0.1.md +++ b/docs/releases/changelog-v0.1.md @@ -1,4 +1,4 @@ -# Release notes v0.1.1 +# Release notes v0.1 ## New features since last release @@ -20,6 +20,9 @@ ## Bug fixes +* Bugfix in `simplify` module, where signal injector was not initiating properly. + ([#9](https://github.com/SpeysideHEP/spey-pyhf/pull/9)) + * Bugfix in apriori likelihood computation for full likelihoods mentioned in [#5](https://github.com/SpeysideHEP/spey-pyhf/issues/5). ([#2](https://github.com/SpeysideHEP/spey-pyhf/pull/2)) From c5fccff54f90519f5428bb4240877892d63d9f59 Mon Sep 17 00:00:00 2001 From: "Jack Y. Araz" Date: Thu, 18 Jan 2024 07:07:37 -0500 Subject: [PATCH 3/3] bump version --- src/spey_pyhf/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spey_pyhf/_version.py b/src/spey_pyhf/_version.py index 3f329aa..babe18d 100644 --- a/src/spey_pyhf/_version.py +++ b/src/spey_pyhf/_version.py @@ -1,3 +1,3 @@ """Version of the spey - pyhf plugin""" -__version__ = "0.1.2" +__version__ = "0.1.3"