Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
forsyth2 committed Aug 29, 2022
1 parent 599134a commit 02d8ed9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions tests/integration/generated/directions_chrysalis.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,16 @@ python -u -m unittest tests/integration/test_bundles.py

```
cd <top level of zppy repo>
chmod u+x tests/integration/generated/update_campaign_expected_files_chrysalis.sh
./tests/integration/generated/update_campaign_expected_files_chrysalis.sh
```
This command also runs the test again.
If the test fails on `test_campaign_high_res_v1`, try running the lines of the loop manually:
```
rm -rf /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_high_res_v1_expected_files
mkdir -p /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_high_res_v1_expected_files
mv test_campaign_high_res_v1_output/post/scripts/*.settings /lcrc/group/e3sm/public_html/zppy_test_resources/test_campaign_high_res_v1_expected_files
```

### test_complete_run

Expand Down
4 changes: 0 additions & 4 deletions zppy/templates/coupled_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def getmoc(dir_in):
# Function to add horizontal line showing average value over a specified period
def add_line(year, var, year1, year2, ax, format="%4.2f", lw=1, color="b"):

print(f"AAA {year} {year1} {year2}")
print(f"BBB {type(year)} {type(year1)} {type(year2)}")
print("CCC {{ year1 }} {{ year2 }}")
print(f"DDD {type({{ year1 }})} {type({{ year2 }})}")
i1 = (np.abs(year - year1)).argmin()
i2 = (np.abs(year - year2)).argmin()

Expand Down

0 comments on commit 02d8ed9

Please sign in to comment.