Skip to content

Commit 2605b25

Browse files
authored
Merge pull request #9 from SpeysideHEP/bugfix
Issue during signal injection
2 parents 8bd633d + c5fccff commit 2605b25

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/releases/changelog-v0.1.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release notes v0.1.1
1+
# Release notes v0.1
22

33
## New features since last release
44

@@ -20,6 +20,9 @@
2020

2121
## Bug fixes
2222

23+
* Bugfix in `simplify` module, where signal injector was not initiating properly.
24+
([#9](https://github.com/SpeysideHEP/spey-pyhf/pull/9))
25+
2326
* Bugfix in apriori likelihood computation for full likelihoods mentioned in
2427
[#5](https://github.com/SpeysideHEP/spey-pyhf/issues/5).
2528
([#2](https://github.com/SpeysideHEP/spey-pyhf/pull/2))

src/spey_pyhf/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version of the spey - pyhf plugin"""
22

3-
__version__ = "0.1.2"
3+
__version__ = "0.1.3"

src/spey_pyhf/simplify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def __call__(
190190
for channel in interpreter.get_channels(control_region_indices):
191191
interpreter.inject_signal(
192192
channel,
193-
[0.0] * signal_patch_map[channel]["data"],
193+
[0.0] * len(signal_patch_map[channel]["data"]),
194194
signal_patch_map[channel]["modifiers"]
195195
if include_modifiers_in_control_model
196196
else None,

0 commit comments

Comments
 (0)