Change how nEventsPerJob is extracted from jO file in logParser
Changes introduced
- Bug fix:
logParser
was extractingnEventsPerJob
from the first occurrence ofevgenConfig.nEventsPerJob
in the jO file, therefore the extrapolation of the CPU time and any other checks related tonEventsPerJob
would be wrong if there were multiple occurences ofevgenConfig.nEventsPerJob
or if the number of events would be manipulated with python statements (see #98 (closed) for details) - A check is added (ERROR thrown) to make sure that no executable
evgenConfig.minEvents
lines exist in the jO file
Tests
Check on a regular file (500xxx/500564/log.generate provided by Serena)
evgenConfig.minEvents
in jO file
Adding
evgenConfig.nEventsPerJob
Adding multiple occcurences and complicated definition of I added the following in the jO:
evgenConfig.nEventsPerJob = 1000
A=10000
evgenConfig.nEventsPerJob = A
evgenConfig.nEventsPerJob*=2
So everything seems to work
Issues resolved
Closes #98 (closed) #99 (closed)