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

PBS log parsing is returning keys with equal signs #31

Open
aidanheerdegen opened this issue Jul 28, 2023 · 0 comments
Open

PBS log parsing is returning keys with equal signs #31

aidanheerdegen opened this issue Jul 28, 2023 · 0 comments

Comments

@aidanheerdegen
Copy link
Contributor

The full yaml dumps the PBS parsing returns payu environment variables from the command string that have = signs in the keys

e.g python run_summary.py -d --no_stats /home/157/amh157/payu/01deg_jra55v13_ryf9091 has this:

    PAYU_CURRENT_RUN=: 732
    PAYU_MODULENAME=: null
    PAYU_MODULEPATH=: null
    PAYU_N_RUNS=: null
    PAYU_PATH=: /g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.07/bin

The relevant code seems to be

https://github.com/aekiss/run_summary/blob/master/run_summary.py#L154-L161

One solution would be to specify the key without the = sign and either use regex with an optional = or strip leading = from the strings returned from splitting on the key.

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

1 participant