Skip to content

test provokes numpy binary incompatibility #62

@lily-tomkovic-DWR

Description

@lily-tomkovic-DWR

When you run bds pytest you'll get a warning that I cannot figure out how to remove:
bds_pytest
............. [100%]
============================================================ warnings summary ============================================================
test_elev2d.py::test_elev2d_time
:241: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 96 from PyObject

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
13 passed, 1 warning in 5.41s

To Reproduce
Steps to reproduce the behavior:
Run bds pytest on your SCHISM simulation folder

Expected behavior
I would like there to be no warning or error messages that aren't related to the actual formulation of the model

Desktop (please complete the following information):

  • on Linux

Additional context
I believe this is an xarray incompatibliity
This didn't work with xrray 2025.6.1 and numpy 2.2.0

Metadata

Metadata

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