Just to let you know, I learned that the proper way to test if a corsika run was successfull is to check that there is the line:
in the log.
E.g.:
if '== END OF RUN ==' not in corsika_log:
log.error('== END OF RUN== not in CORSIKA log output')
log.error('CORSIKA did not finish successfully')
sys.exit(1)
Just to let you know, I learned that the proper way to test if a corsika run was successfull is to check that there is the line:
in the log.
E.g.: