Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions conda/dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Conda development environment for testing local source code changes to zppy-interfaces before merging them to production (main branch).
# To set up:
# conda clean --all --y
# conda env create -f conda/dev.yml -n env_name
# pre-commit run --all-files
# pip install .
name: zppy-interfaces-dev
channels:
- conda-forge
Expand Down
59 changes: 59 additions & 0 deletions examples/run_zi_global-time-series.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import sys
import time

from zppy_interfaces.global_time_series.__main__ import main

sys.argv.extend(
[
"--use_ocn",
"True",
"--input",
"/lcrc/group/e3sm2/ac.wlin/E3SMv3/v3.LR.historical_0051",
"--input_subdir",
"archive/ocn/hist",
"--moc_file",
"mocTimeSeries_1985-1995.nc",
"--case_dir",
"/lcrc/group/e3sm/ac.forsyth2/zppy_weekly_comprehensive_v3_output/test_issue-23-rebased-20250903/v3.LR.historical_0051",
"--experiment_name",
"v3.LR.historical_0051",
"--figstr",
"v3.LR.historical_0051",
"--color",
"Blue",
"--ts_num_years",
"5",
"--plots_original",
"net_toa_flux_restom,global_surface_air_temperature,toa_radiation,net_atm_energy_imbalance,change_ohc,max_moc,change_sea_level,net_atm_water_imbalance",
# "--plots_original","None",
"--plots_atm",
"TREFHT",
"--plots_ice",
"None",
"--plots_lnd",
"all",
# "--plots_lnd", "FSH",
"--plots_ocn",
"None",
"--nrows",
"4",
"--ncols",
"2",
"--results_dir",
"/lcrc/group/e3sm/public_html/diagnostic_output/ac.zhang40/tests/zi",
"--regions",
"glb,n,s",
"--make_viewer",
"True",
"--start_yr",
"1985",
"--end_yr",
"1995",
]
)

start_time = time.time()
main()
end_time = time.time()

print(f"Execution time: {end_time - start_time:.2f} seconds")
184 changes: 0 additions & 184 deletions tests/integration/global_time_series/cases_global_time_series.py

This file was deleted.

Loading
Loading