Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jackaraz committed Dec 12, 2024
1 parent f5e41dd commit 5bc9705
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spey_pyhf/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ def make_patch(self) -> List[Dict]:
patch = []
to_remove = []
for ich, channel in enumerate(self.channels):
if channel in self._signal_dict:
if channel in self._to_remove:
to_remove.append(remove_from_json(ich))
elif channel in self._signal_dict:
patch.append(
add_to_json(
ich, self._signal_dict[channel], self._signal_modifiers[channel]
)
)
elif channel in self._to_remove:
to_remove.append(remove_from_json(ich))
else:
log.warning(f"Undefined channel in the patch set: {channel}")

Expand Down

0 comments on commit 5bc9705

Please sign in to comment.