You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's new in v0.2
New feature
add_raster(path, name, crs='auto') — register any user-provided .tif file or directory of .tifs as a first-class measure. Works identically to built-in measures: CRS is auto-detected via rasterio, or can be set explicitly ('wgs84' / 'cea').
Bug fix
Fixed a crash when passing a filtered (non-contiguous-index) GeoDataFrame: reset_index(drop=True) is now applied to self.df and self.dfnocyl in geostats.__init__.
Tests
tests/test_add_raster.py: 15 unit tests covering add_raster registration, CRS detection, error handling, and computation with synthetic rasters.
tests/test_regression.py: integration tests using Natural Earth countries, including equivalence tests that verify add_raster(..., crs='cea') pointing to the built-in Suitability data produces numerically identical results (rtol=1e-6) to the built-in Suitability measure.