Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:

- name: Setup pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
cache: true

- name: Run tests with coverage
run: >
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ jobs:
persist-credentials: false
- name: Setup pixi
uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
cache: true

- name: Tests
run: >
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ __pycache__/
# C extensions
*.so

# Data files
*.nc
Comment thread
ChrisBarker-NOAA marked this conversation as resolved.
*.pkl

# Distribution / packaging
.Python
build/
Expand Down Expand Up @@ -163,6 +167,7 @@ cython_debug/
xarray_subset_grid/_version.py
# pixi environments
.pixi
pixi.lock
*.egg-info

.ruff_cache/
Empty file.
Binary file not shown.
Binary file not shown.
Binary file removed docs/examples/example_data/SCHISM/out2d_1.nc
Binary file not shown.
Binary file removed docs/examples/example_data/SCHISM/salinity_1.nc
Binary file not shown.
Binary file removed docs/examples/example_data/SCHISM/zCoordinates_1.nc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/examples/example_data/stofs_2d_glo.subset.nc
Binary file not shown.
Binary file removed docs/examples/example_data/wcofs-subset-control.nc
Binary file not shown.
25 changes: 25 additions & 0 deletions download_test_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import zipfile
from pathlib import Path

import pooch


def download_data():
"""Download support data for tests and documentation."""
url = "https://github.com/ioos/xarray-subset-grid/releases/download"
version = "2026.02.09"

fname = pooch.retrieve(
url=f"{url}/{version}/data_files.zip",
known_hash="sha256:675fb74b9a8c58a6b3bdcef691f7e5bf97a11a3f1065668525e5169f8be20343",
)

here = Path(__file__).resolve().parent
print(fname)
print(here)
with zipfile.ZipFile(fname, "r") as zip_ref:
zip_ref.extractall(here)


if __name__ == "__main__":
download_data()
23,792 changes: 0 additions & 23,792 deletions pixi.lock

This file was deleted.

8 changes: 5 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ setuptools_scm = "*"
python-build = "*"
sphinx-autodoc-typehints = "*"
myst-nb = "*"
pooch = "*"

[feature.dev.tasks]
lint = "ruff check tests xarray_subset_grid"
test = "pytest tests/"
test_all = "pytest --online tests/"
test_cov = "pytest --cov=xarray_subset_grid tests"
test = { cmd = ["pytest", "tests/"], depends-on = ["download"] }
download = "python download_test_data.py"
test_all = { cmd = "pytest --online tests/", depends-on = ["download"] }
test_cov = { cmd = "pytest --cov=xarray_subset_grid tests", depends-on = ["download"] }

[feature.examples.dependencies]
matplotlib = "*"
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ keywords = [ "xarray" ]
license = { file = "LICENSE" }

authors = [
{ name = "Matthew Iannucci", email = "matt.iannucci@tetratech.com" },
{ name = "Christopher H. Barker", email = "chris.barker@noaa.gov" },
{ name = "Matthew Iannucci", email = "matt.iannucci@tetratech.com" },
]
requires-python = ">=3.10"
classifiers = [
Expand Down Expand Up @@ -42,6 +42,7 @@ dependencies = [
]

optional-dependencies.dev = [
"pooch",
"pre-commit",
"pytest",
"pytest-cov",
Expand Down
Binary file removed tests/example_data/2D-rectangular_grid_wind.nc
Binary file not shown.
Binary file removed tests/example_data/AMSEAS-subset.nc
Binary file not shown.
Binary file removed tests/example_data/SFBOFS_subset1.nc
Binary file not shown.
Binary file removed tests/example_data/arakawa_c_test_grid.nc
Binary file not shown.
Binary file removed tests/example_data/rectangular_grid_decreasing.nc
Binary file not shown.
Binary file removed tests/example_data/small_ugrid_zero_based.nc
Binary file not shown.
Binary file removed tests/example_data/tris_and_bounds.nc
Binary file not shown.