Skip to content

Commit 006b9f3

Browse files
Add bathymeter_mo_ps43 (#53)
* 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>
1 parent 9002bb0 commit 006b9f3

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

ci/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: pydomcfg_test
22
channels:
33
- conda-forge
44
dependencies:
5+
- pooch
56
- pytest-cov
67
- pytest
78
- pytest-xdist

ci/upstream-dev-env.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: pydomcfg_test_dev
22
channels:
33
- conda-forge
44
dependencies:
5+
- pooch
56
- pytest-cov
67
- pytest
78
- pytest-xdist

pydomcfg/tests/datasets.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pooch
2+
import xarray as xr
3+
4+
BASE_URL = "https://github.com/pyNEMO/sample-datasets/raw/main"
5+
6+
ds_amm7 = xr.open_dataset(
7+
pooch.retrieve(
8+
url="/".join([BASE_URL, "bathymeter_amm7_mo_ps43.nc"]),
9+
known_hash="c8e6b6e185bc15e89e19a860acc79ed9fee335de0c9113af76dac82438297b45",
10+
)
11+
)

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ install_requires =
1515
setup_requires =
1616
setuptools
1717
setuptools_scm
18+
tests_require =
19+
pytest
20+
pooch
1821

1922
[tool:pytest]
2023
testpaths = pydomcfg/tests

0 commit comments

Comments
 (0)