Skip to content

Commit

Permalink
Merge branch 'main' into joss-paper
Browse files Browse the repository at this point in the history
  • Loading branch information
navidcy authored Aug 5, 2024
2 parents 226e4a0 + 4781919 commit 5d3d1ae
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 173 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
shell: bash -el {0}
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions demos/premade_run_directories/common_files/MOM_input
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ TOPO_CONFIG = "file" !
! Phillips - ACC-like idealized topography used in the Phillips config.
! dense - Denmark Strait-like dense water formation and overflow.
! USER - call a user modified routine.
TOPO_FILE = "bathymetry.nc" ! Name of the file containing bathymetry information.
MINIMUM_DEPTH = 4.5 ! [m] default = 0.0
! If MASKING_DEPTH is unspecified, then anything shallower than MINIMUM_DEPTH is
! assumed to be land and all fluxes are masked out. If MASKING_DEPTH is
Expand Down
14 changes: 6 additions & 8 deletions demos/reanalysis-forced.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -288,16 +288,14 @@
" glorys_path / \"ic_unprocessed.nc\", # directory where the unprocessed initial condition is stored, as defined earlier\n",
" ocean_varnames,\n",
" arakawa_grid=\"A\"\n",
" )\n",
" ) \n",
"\n",
"# Now iterate through our four boundaries \n",
"for i, orientation in enumerate([\"south\", \"north\", \"west\", \"east\"]):\n",
" expt.rectangular_boundary(\n",
" glorys_path / (orientation + \"_unprocessed.nc\"),\n",
"# Set up the four boundary conditions. Remember that in the glorys_path, we have four boundary files names north_unprocessed.nc etc. \n",
"expt.rectangular_boundaries(\n",
" glorys_path,\n",
" ocean_varnames,\n",
" orientation, # Needs to know the cardinal direction of the boundary\n",
" i + 1, # Just a number to identify the boundary. Indexes from 1 \n",
" arakawa_grid=\"A\"\n",
" boundaries = [\"south\", \"north\", \"west\", \"east\"],\n",
" arakawa_grid = \"A\"\n",
" )"
]
},
Expand Down
1 change: 1 addition & 0 deletions environment-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ channels:
- conda-forge
dependencies:
- esmpy
- numpy<2.0.0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies = [
"dask[array]",
"dask[distributed]",
"netCDF4",
"numpy >= 1.17.0",
"numpy >= 1.17.0, < 2.0.0",
"scipy >= 1.2.0",
"xarray",
"xesmf >= 0.8.4",
Expand Down
Loading

0 comments on commit 5d3d1ae

Please sign in to comment.