Deltares / imod-python

🐍🧰 Make massive MODFLOW models
https://deltares.github.io/imod-python/
MIT License
18 stars 3 forks source link

``test_gdal_compliant_grid_crs`` fails with rasterio 1.4 #1253

Open JoerivanEngelen opened 2 hours ago

JoerivanEngelen commented 2 hours ago

In this giant merge of the imod5 feature branch (#1252), I updated our pixi lockfile and 2 tests failed.

One I could fix, but test_gdal_compliant_grid_crs fails with rasterio 1.4 causes a failure. For some reason:

test_gdal_compliant_grid_crs(tmpdir)
...
    da_read = rioxarray.open_rasterio(str(tmpdir / "gdal_accepted_grid.nc"))
    assert da_read.rio.crs == "EPSG:28992"
...

Gives an AssertionError, as the crs attribute equals None.

I resorted to setting rasterio to 1.3.11 in our dev environment, but it is something to keep track of. Possibly related to:

Huite commented 2 hours ago

Might be GDAL itself:

(Rasterio) Version 1.4.0 will require GDAL >= 3.5