From c47a7d2ad503d08bdcab7acf6c3392447531f9cf Mon Sep 17 00:00:00 2001 From: juacrumar Date: Sun, 22 Sep 2024 10:08:04 +0200 Subject: [PATCH] fix to filter check --- validphys2/src/validphys/filters.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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