Skip to content

v0.2

Latest

Choose a tag to compare

@ozak ozak released this 06 Apr 16:07
· 7 commits to main since this release
765798f

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.