From fc7b085b72b6068de1fe2284f3236785d1024eff Mon Sep 17 00:00:00 2001 From: Heshy Roskes Date: Wed, 18 Oct 2017 23:26:34 +0200 Subject: [PATCH] some files are 00001 or 00002 --- .../OfflineValidation/python/TkAlAllInOneTool/dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alignment/OfflineValidation/python/TkAlAllInOneTool/dataset.py b/Alignment/OfflineValidation/python/TkAlAllInOneTool/dataset.py index aca4b9a2ef702..b56f0495ff073 100644 --- a/Alignment/OfflineValidation/python/TkAlAllInOneTool/dataset.py +++ b/Alignment/OfflineValidation/python/TkAlAllInOneTool/dataset.py @@ -859,8 +859,8 @@ def getrunnumberfromfilename(filename): error = "does not start with /store" elif parts[2] in ["mc", "relval"]: result = 1 - elif parts[-2] != "00000" or not parts[-1].endswith(".root"): - error = "does not end with 00000/something.root" + elif not parts[-1].endswith(".root"): + error = "does not end with something.root" elif len(parts) != 12: error = "should be exactly 11 slashes counting the first one" else: