-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
142 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Use this cfg to test a pull request before merging. | ||
# 1. Copy over the contents of template_complete_run.cfg. | ||
# 2. Delete parts that aren't needed. `output` and `www` should include `zppy_test_debug` rather than `zppy_test_complete_run`. | ||
# 3. Iteratively debug/develop with this cfg. | ||
# 4. Once it's working as expected, copy important changes to template_complete_run.cfg. | ||
|
||
[default] | ||
case = v2.LR.historical_0201 | ||
constraint = "" | ||
dry_run = "False" | ||
environment_commands = "" | ||
input = "/lcrc/group/e3sm/ac.forsyth2//E3SMv2/v2.LR.historical_0201" | ||
input_subdir = archive/atm/hist | ||
mapping_file = "map_ne30pg2_to_cmip6_180x360_aave.20200201.nc" | ||
# To run this test, edit `output` and `www` in this file, along with `actual_images_dir` in test_complete_run.py | ||
output = "/lcrc/group/e3sm/ac.forsyth2/zppy_test_debug_output/test-601-output-viewer-v3/v2.LR.historical_0201" | ||
partition = "debug" | ||
qos = "regular" | ||
www = "/lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_debug_www/test-601-output-viewer-v3" | ||
|
||
[ts] | ||
active = True | ||
walltime = "00:30:00" | ||
years = "1850:1854:2", | ||
|
||
[[ atm_monthly_180x360_aave ]] | ||
frequency = "monthly" | ||
input_files = "eam.h0" | ||
input_subdir = "archive/atm/hist" | ||
ts_fmt = "cmip" | ||
|
||
[[ atm_daily_180x360_aave ]] | ||
frequency = "daily" | ||
input_files = "eam.h1" | ||
input_subdir = "archive/atm/hist" | ||
vars = "PRECT" | ||
|
||
[[ land_monthly ]] | ||
e3sm_to_cmip_environment_commands = "" | ||
extra_vars = "landfrac" | ||
frequency = "monthly" | ||
input_files = "elm.h0" | ||
input_subdir = "archive/lnd/hist" | ||
vars = "LAISHA,LAISUN" | ||
#vars = "FSH,RH2M" | ||
ts_fmt = "cmip" | ||
|
||
[ilamb] | ||
active = True | ||
grid = '180x360_aave' | ||
nodes = 8 | ||
partition = "compute" | ||
short_name = 'v2.LR.historical_0201' | ||
ts_num_years = 2 | ||
years = "1850:1854:2", | ||
|
||
[[ land_monthly ]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/integration/generated/update_bundles_expected_files_chrysalis.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Run this script to update expected files for test_bundles.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_bundles_expected_files.sh` | ||
|
||
# Remove old expected files. | ||
rm -rf /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles | ||
# Your output will now become the new expectation. | ||
# Copy output so you don't have to rerun zppy to generate the output. | ||
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_test_bundles_www/test-601-output-viewer-v3/v2.LR.historical_0201 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles | ||
mkdir -p /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles/bundle_files | ||
cp -r /lcrc/group/e3sm/ac.forsyth2/zppy_test_bundles_output/test-601-output-viewer-v3/v2.LR.historical_0201/post/scripts/bundle*.bash /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles/bundle_files | ||
zppy_top_level=$(pwd) | ||
cd /lcrc/group/e3sm/public_html/zppy_test_resources/expected_bundles | ||
# Remove the image check failures, so they don't end up in the expected files. | ||
rm -rf image_check_failures_bundles | ||
# This file will list all the expected images. | ||
find . -type f -name '*.png' > ../image_list_expected_bundles.txt | ||
cd ${zppy_top_level} | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_bundles.py |
18 changes: 18 additions & 0 deletions
18
tests/integration/generated/update_complete_run_expected_files_chrysalis.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Run this script to update expected files for test_complete_run.py | ||
# Run from the top level of the zppy repo | ||
# Run as `./tests/integration/generated/update_complete_run_expected_files.sh` | ||
|
||
# Remove old expected files. | ||
rm -rf /lcrc/group/e3sm/public_html/zppy_test_resources/expected_complete_run | ||
# Your output will now become the new expectation. | ||
# Copy output so you don't have to rerun zppy to generate the output. | ||
cp -r /lcrc/group/e3sm/public_html/diagnostic_output/ac.forsyth2/zppy_test_complete_run_www/test-601-output-viewer-v3/v2.LR.historical_0201 /lcrc/group/e3sm/public_html/zppy_test_resources/expected_complete_run | ||
zppy_top_level=$(pwd) | ||
cd /lcrc/group/e3sm/public_html/zppy_test_resources/expected_complete_run | ||
# Remove the image check failures, so they don't end up in the expected files. | ||
rm -rf image_check_failures_complete_run | ||
# This file will list all the expected images. | ||
find . -type f -name '*.png' > ../image_list_expected_complete_run.txt | ||
cd ${zppy_top_level} | ||
# Rerun test | ||
python -u -m unittest tests/integration/test_complete_run.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters