From 1c2e5473151d21477e69297ea2d20633711dfc70 Mon Sep 17 00:00:00 2001 From: Anushan Fernando Date: Wed, 11 Sep 2024 10:02:32 -0700 Subject: [PATCH] Exclude netcdf4 version 1.7.1 due to buggy behaviour. See discussion on https://github.com/Unidata/netcdf4-python/issues/1343. Additionally because of not using 1.7.1 netcdf (which adds support for np>=2 compatibility) restrict numpy to <2. PiperOrigin-RevId: 673435320 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 027c3839..a33970e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,10 +30,11 @@ dependencies = [ "equinox @ git+https://github.com/patrick-kidger/equinox@1e601672d38d2c4d483535070a3572d8e8508a20", "PyYAML>=6.0.1", "xarray>=2023.12.0", - "netcdf4>=1.6.5", + "netcdf4>=1.6.5,<1.7.1", "h5netcdf>=1.3.0", "scipy>=1.12.0", "jaxtyping>=0.2.28", + "numpy<2.0.0", ] [project.urls]