E3SM-Project / zppy

E3SM post-processing toolchain
BSD 3-Clause "New" or "Revised" License
6 stars 15 forks source link

Make TC Analysis parallel #631

Closed forsyth2 closed 1 month ago

forsyth2 commented 1 month ago

Issue resolution

Select one: This pull request is...

1. Does this do what we want it to do?

Objectives:

Required:

2. Are the implementation details accurate & efficient?

Required:

3. Is this well documented?

Required:

4. Is this code clean?

Required:

If applicable:

forsyth2 commented 1 month ago

Unit tests pass (https://github.com/E3SM-Project/zppy/actions/runs/11355423070/job/31584722994?pr=631).

I didn't run into any of the issues from #180. Those errors were intermittent, so I do have some concern they just didn't happen to happen this time. That said, it's very possible underlying things have changed since those bugs were first noticed. For reference, those bugs were:

Full testing details ``` # zppy dev environment mamba clean --all mamba env create -f conda/dev.yml -n zppy_dev_make-tc-parallel-20241015 conda activate zppy_dev_make-tc-parallel-20241015 pre-commit run --all-files pip install . python -u -m unittest tests/test_*.py # e3sm_diags dev environment cd ../e3sm_diags git checkout main git fetch upstream git reset --hard upstream/main git log # Should match https://github.com/E3SM-Project/e3sm_diags/commits/main mamba clean --all mamba env create -f conda-env/dev.yml -n e3sm_diags_20241015 conda activate e3sm_diags_20241015 pip install . cd ../zppy conda activate zppy_dev_make-tc-parallel-20241015 pip install . zppy -c tests/integration/generated/test_min_case_tc_analysis_simultaneous_1_chrysalis.cfg zppy -c tests/integration/generated/test_min_case_tc_analysis_simultaneous_2_chrysalis.cfg cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_tc_analysis_simultaneous_1_output/test-631-v2/v2.LR.historical_0201/post/scripts/ grep -v "OK" *status # No errors cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_tc_analysis_simultaneous_2_output/test-631-v2/v2.LR.historical_0201/post/scripts/ grep -v "OK" *status # No errors zppy -c tests/integration/generated/test_min_case_e3sm_diags_tc_analysis_chrysalis.cfg cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_output/test-631-v2/v2.LR.historical_0201/post/scripts grep -v "OK" *status # No errors # https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_www/test-631-v2/v2.LR.historical_0201/e3sm_diags/atm_monthly_180x360_aave_tc_analysis/model_vs_obs_1985-1986/viewer/tc_analysis/index.html has plots zppy -c tests/integration/generated/test_min_case_e3sm_diags_tc_analysis_mvm_1_chrysalis.cfg # Wait to complete cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_mvm_1_output/test-631-v2/v2.LR.historical_0201/post/scripts/ grep -v "OK" *status # No errors cd - zppy -c tests/integration/generated/test_min_case_e3sm_diags_tc_analysis_mvm_2_chrysalis.cfg cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_mvm_2_output/test-631-v2/v2.LR.historical_0201/post/scripts/ grep -v "OK" *status # No errors # https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_mvm_2_www/test-631-v2/v2.LR.historical_0201/e3sm_diags/atm_monthly_180x360_aave_mvm/model_vs_model_1995-1996/viewer/tc_analysis/index.html has plots zppy -c tests/integration/generated/test_min_case_e3sm_diags_tc_analysis_parallel_chrysalis.cfg cd /lcrc/group/e3sm/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_parallel_output/test-631-v2/v2.LR.historical_0201/post/scripts/ grep -v "OK" *status # No errors # https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_parallel_www/test-631-v2/v2.LR.historical_0201/e3sm_diags/atm_monthly_180x360_aave_tc_analysis/model_vs_obs_1985-1986/viewer/tc_analysis/index.html has plots # https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.forsyth2/zppy_min_case_e3sm_diags_tc_analysis_parallel_www/test-631-v2/v2.LR.historical_0201/e3sm_diags/atm_monthly_180x360_aave_tc_analysis/model_vs_obs_1987-1988/viewer/tc_analysis/index.html has plots ```
chengzhuzhang commented 1 month ago

@forsyth2 thank you for working on the PR and the comments. I visually checked and it looks good. I'm happy to review any upcoming TC analysis related PRs, so feel free to tag me.

forsyth2 commented 1 month ago

Thanks @chengzhuzhang!