Skip to content

Commit

Permalink
Merge pull request #23580 from hroskes/fix-tkal-dataset
Browse files Browse the repository at this point in the history
Tracker alignment - fix incorrect assumption in data file names
  • Loading branch information
cmsbuild committed Jun 15, 2018
2 parents c064038 + fc7b085 commit 05a03af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05a03af

Please sign in to comment.