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

[develop]: Remove shell workflow. #764

Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a295284
Bug fix with FIELD_TABLE_FN
danielabdi-noaa May 10, 2022
fd67251
Modify crontab management, use config_defaults.sh.
danielabdi-noaa May 10, 2022
6021cf3
Add status badge.
danielabdi-noaa May 16, 2022
5a2db4f
Update cheyenne crontab management.
danielabdi-noaa May 19, 2022
db96de1
source lmod-setup
danielabdi-noaa May 19, 2022
a63f913
Add main to set_predef_grid
danielabdi-noaa May 21, 2022
62ca154
Bug fix in predef_grid
danielabdi-noaa May 25, 2022
9d597c3
Don't import dead params.
danielabdi-noaa May 25, 2022
b992652
Fix bug in resetting VERBOSE
danielabdi-noaa May 26, 2022
2c1b2a4
Minor fix in INI config.
danielabdi-noaa May 27, 2022
1fd8557
Construct var_defns components from dictionary.
danielabdi-noaa May 26, 2022
e05e206
Allow also lower case variables to be exported.
danielabdi-noaa May 30, 2022
7d29801
Updates to python workflow due to PR #776
danielabdi-noaa May 24, 2022
47fe6eb
Use python versions of link_fix and set_FV3_sfc in job script.
danielabdi-noaa May 7, 2022
2d1790c
Use python versions of create_diag/model.
danielabdi-noaa Jun 2, 2022
b838969
Some fixes addressing Christina's suggestions.
danielabdi-noaa Jun 15, 2022
8b07fc3
Delete shell workflow
danielabdi-noaa Jun 2, 2022
b8d6c9c
Append pid to temp files.
danielabdi-noaa Jun 8, 2022
c9f04f7
Update scripts to work with the latest hashes of UFS_UTILS and UPP (#…
chan-hoo Jun 9, 2022
5f1d916
Remove -S option from link_fix call.
danielabdi-noaa Jun 16, 2022
9f88f60
Fixes due to merge
danielabdi-noaa Jun 27, 2022
9b30afd
Cosmoetic changes.
danielabdi-noaa Jul 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Append pid to temp files.
  • Loading branch information
danielabdi-noaa committed Jul 14, 2022
commit b8d6c9c541d764fae67ffe5ada3c5ad90fc35ec2
11 changes: 7 additions & 4 deletions ush/python_utils/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,15 @@ def load_shell_config(config_file):
# Save env vars before and after sourcing the scipt and then
# do a diff to get variables specifically defined/updated in the script
# Method sounds brittle but seems to work ok so far
pid = os.getpid()
code = dedent(f''' #!/bin/bash
(set -o posix; set) > ./_t1
t1="./t1.{pid}"
t2="./t2.{pid}"
(set -o posix; set) > $t1
{{ . {config_file}; set +x; }} &>/dev/null
(set -o posix; set) > ./_t2
diff ./_t1 ./_t2 | grep "> " | cut -c 3-
rm -rf ./_t1 ./_t2
(set -o posix; set) > $t2
diff $t1 $t2 | grep "> " | cut -c 3-
rm -rf $t1 $t2
''')
(_,config_str,_) = run_command(code)
lines = config_str.splitlines()
Expand Down