Skip to content

Commit

Permalink
Add bathymeter_mo_ps43 (#53)
Browse files Browse the repository at this point in the history
* add bathymeter_mo_ps43

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* renaming

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
malmans2 and pre-commit-ci[bot] committed Jul 2, 2021
1 parent 9002bb0 commit 006b9f3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions ci/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: pydomcfg_test
channels:
- conda-forge
dependencies:
- pooch
- pytest-cov
- pytest
- pytest-xdist
Expand Down
1 change: 1 addition & 0 deletions ci/upstream-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: pydomcfg_test_dev
channels:
- conda-forge
dependencies:
- pooch
- pytest-cov
- pytest
- pytest-xdist
Expand Down
11 changes: 11 additions & 0 deletions pydomcfg/tests/datasets.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pooch
import xarray as xr

BASE_URL = "https://github.com/pyNEMO/sample-datasets/raw/main"

ds_amm7 = xr.open_dataset(
pooch.retrieve(
url="/".join([BASE_URL, "bathymeter_amm7_mo_ps43.nc"]),
known_hash="c8e6b6e185bc15e89e19a860acc79ed9fee335de0c9113af76dac82438297b45",
)
)
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ install_requires =
setup_requires =
setuptools
setuptools_scm
tests_require =
pytest
pooch

[tool:pytest]
testpaths = pydomcfg/tests
Expand Down

0 comments on commit 006b9f3

Please sign in to comment.