Commit d2f32cc8 authored by Spyros Argyropoulos's avatar Spyros Argyropoulos
Browse files

Fix issue in Pythia8 version extraction

parent a3b304b7
Pipeline #4284076 passed with stages
in 51 seconds
......@@ -285,7 +285,7 @@ def pythia8Checks(logContent,generatorName,pl_reason):
usesCKKWL=False
errors = False
# extract pythia version from generator name
versionString = re.search('Pythia8\(v\.(.+?)p', generatorName)
versionString = re.search('Pythia8\(v\.(.+?)[p\)]', generatorName)
p8ver = int(versionString.group(1)) if versionString else 0
for line in logContent:
if "Pythia8_ShowerWeights.py" in line:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment