Skip to content

Commit

Permalink
Fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Apr 11, 2024
1 parent 20d695c commit 1de9b95
Show file tree
Hide file tree
Showing 5 changed files with 1,756 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
to run the script as a Python module
- Command: python -m auxiliary_tools.cdat_regression_testing.<ISSUE>-<SET_NAME>.<SCRIPT-NAME>
- Example: python -m auxiliary_tools.cdat_regression_testing.660_cosp_histogram.run_script
7. Run `chown -R o=rx <SET_DIR>` to allow public access to viewer outputs on the NERSC webserver
- Example: `chown -R o=rx /global/cfs/cdirs/e3sm/www/cdat-migration-fy24/654-zonal_mean_xy`
7. Run `chmod -R o=rx <SET_DIR>` to allow public access to viewer outputs on the NERSC webserver
- Example: `chmod -R o=rx /global/cfs/cdirs/e3sm/www/cdat-migration-fy24/654-zonal_mean_xy`
- https://portal.nersc.gov/project/e3sm/cdat-migration-fy24/
8. Make a copy of the CDAT regression testing notebook in the same directory
as this script and follow the instructions there to start testing.
Expand Down Expand Up @@ -46,7 +46,7 @@

# TODO: <OPTIONAL> Update MULTIPROCESSING based on whether to run in parallel or
# serial. For debugging purposes, set to False to run serially.
#MULTIPROCESSING = True
# MULTIPROCESSING = True
MULTIPROCESSING = False

run_set(SET_NAME, SET_DIR, CFG_PATH, MULTIPROCESSING)
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# %%
import glob

import xcdat as xc

filepath = "/global/cfs/cdirs/e3sm/e3sm_diags/postprocessed_e3sm_v2_data_for_e3sm_diags/20210528.v2rc3e.piControl.ne30pg2_EC30to60E2r2.chrysalis/climatology/rgr/20210528.v2rc3e.piControl.ne30pg2_EC30to60E2r2.chrysalis_[0-1][0-9]_*_*climo.nc"

filepaths = glob.glob(filepath)

# %%
ds = xc.open_mfdataset(filepath)

# %%
Loading

0 comments on commit 1de9b95

Please sign in to comment.