Skip to content

fix: add xarray[io] extra for netCDF support#123

Merged
flaport merged 1 commit into
mainfrom
fix/xarray-netcdf-io
Jun 19, 2026
Merged

fix: add xarray[io] extra for netCDF support#123
flaport merged 1 commit into
mainfrom
fix/xarray-netcdf-io

Conversation

@vvahidd

@vvahidd vvahidd commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Motivation

sax depends on xarray but not its netCDF backend. Several PDKs ship their data as netCDF files, and without netCDF4 installed, xarray.open_dataset(...) raises a backend error. In gdsfactory+ this surfaces as a silent failure, making it hard to diagnose.

Change

Pull in xarray's io extra so the netCDF dependencies are installed with sax:

- "xarray>=2025.1.2,<2027.0.0"
+ "xarray[io]>=2025.1.2,<2027.0.0"

The io extra includes netCDF4, h5netcdf, scipy, zarr, fsspec, cftime, and pooch.

@github-actions github-actions Bot added the bug Something isn't working label Jun 19, 2026
@vvahidd vvahidd added deps dependency updates bug Something isn't working and removed bug Something isn't working labels Jun 19, 2026
@vvahidd vvahidd requested a review from flaport June 19, 2026 15:03
@flaport flaport merged commit 910ea69 into main Jun 19, 2026
16 checks passed
@flaport flaport deleted the fix/xarray-netcdf-io branch June 19, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working deps dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants