Skip to content

Commit

Permalink
fix to filter check
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Sep 22, 2024
1 parent df3e8c0 commit c47a7d2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions validphys2/src/validphys/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,14 @@ def __call__(self, dataset, idat):
# is different to the case where the rule does apply,
# but the point was cut out by the rule.
if (
dataset.setname != self.dataset
not (
dataset.setname == self.dataset
or
# for old rules, we might be using an old name of this dataset
(dataset.legacy_names is not None and self.dataset in dataset.legacy_names)
)
and process_name != self.process_type
and self.process_type != "DIS_ALL"
# for old rules, we might be using an old name of this dataset
and self.dataset not in dataset.legacy_names
):
return None

Expand Down

0 comments on commit c47a7d2

Please sign in to comment.