Skip to content

Remove numpy array warning filter from ddlpy pyproject.toml #192

Closed

Description

@veenstrajelmer

Warning filter implemented in pyproject.toml in #191 to suppress RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 ... in tests/test_utils.py::test_dataframe_to_xarray_to_netcdf.

The filter is now added in netCDF4: reported in Unidata/netcdf4-python#1354 (comment) and implemented in Unidata/netcdf4-python#1471 on 23 Feb 2026.

Todo:

  • await netCDF4 release (1.7.5, 15 Oct 2026) >> requires Python>=3.11
  • remove warning filter
  • update the minimal required netcdf4 version (and minimal Python version)
  • see if tests still pass

Update Oct 2026: there was another filter added for netcdf4: "Setting the shape on a NumPy array has been deprecated in NumPy 2.5". Also already fixed in the main branch (Unidata/netcdf4-python#1468), should also be fixed in 1.7.5.

Activity

  1. changed the title [-]Remove numpy array warning filter[/-] [+]Remove numpy array warning filter from ddlpy pyproject.toml[/+] on Apr 22, 2026
  2. linked a pull request that will close this issueadd python 3.15 support #209on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions