Skip to content

Commit

Permalink
cannot prune channels per measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
vaustrup committed Dec 8, 2023
1 parent 0360984 commit c12163c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pyhf/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,10 @@ def prune(
raise ValueError(
"Pruning of measurements and samples cannot be run with mode `logical_and`."
)
if channels != [] and measurements != []:
raise ValueError(
"Pruning of measurements and channels cannot be run with mode `logical_and`."
)
if modifier_types != [] and measurements != []:
raise ValueError(
"Pruning of measurements and modifier_types cannot be run with mode `logical_and`."
Expand Down

0 comments on commit c12163c

Please sign in to comment.