Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORSIKA exit code is alway zero #3

Open
maxnoe opened this issue Sep 25, 2019 · 1 comment
Open

CORSIKA exit code is alway zero #3

maxnoe opened this issue Sep 25, 2019 · 1 comment

Comments

@maxnoe
Copy link
Member

maxnoe commented Sep 25, 2019

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:

== END OF RUN ==

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)
@relleums
Copy link
Member

Thanks for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants