Skip to content

Commit

Permalink
Merge pull request #338 from gwmod/311-test-run-on-push-confusing
Browse files Browse the repository at this point in the history
remove confusing ci step
  • Loading branch information
OnnoEbbens authored Apr 19, 2024
2 parents 64605fa + 69ccac7 commit bef2118
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,7 @@ jobs:
run: |
python -c "import nlmod; nlmod.util.download_mfbinaries()"
- name: Run notebooks
if: ${{ github.event_name == 'push' }}
env:
NHI_GWO_USERNAME: ${{ secrets.NHI_GWO_USERNAME}}
NHI_GWO_PASSWORD: ${{ secrets.NHI_GWO_PASSWORD}}
run: |
py.test ./tests -m "not notebooks"
- name: Run tests only
if: ${{ github.event_name == 'pull_request' }}
env:
NHI_GWO_USERNAME: ${{ secrets.NHI_GWO_USERNAME}}
NHI_GWO_PASSWORD: ${{ secrets.NHI_GWO_PASSWORD}}
Expand Down
7 changes: 7 additions & 0 deletions nlmod/dims/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,13 @@ def modelgrid_from_ds(ds, rotated=True, nlay=None, top=None, botm=None, **kwargs

def modelgrid_to_vertex_ds(mg, ds, nodata=-1):
"""Add information about the calculation-grid to a model dataset."""

warnings.warn(
"'modelgrid_to_vertex_ds' is deprecated and will be removed in a"
"future version, please use 'modelgrid_to_ds' instead",
DeprecationWarning,
)

# add modelgrid to ds
ds["xv"] = ("iv", mg.verts[:, 0])
ds["yv"] = ("iv", mg.verts[:, 1])
Expand Down

0 comments on commit bef2118

Please sign in to comment.