diff --git a/validphys2/src/validphys/filters.py b/validphys2/src/validphys/filters.py index 84f2421f57..a34e9b2f70 100644 --- a/validphys2/src/validphys/filters.py +++ b/validphys2/src/validphys/filters.py @@ -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