Skip to content

Upgrade/torchgeo 0.9.0#4

Merged
PaulDanielML merged 11 commits into
mainfrom
upgrade/torchgeo-0.9.0
May 27, 2026
Merged

Upgrade/torchgeo 0.9.0#4
PaulDanielML merged 11 commits into
mainfrom
upgrade/torchgeo-0.9.0

Conversation

@PaulDanielML
Copy link
Copy Markdown
Collaborator

No description provided.

- Update pyproject.toml: torchgeo>=0.9.0, numpy>=1.26, requires-python>=3.12
- Remove allow-direct-references (no longer using git dependency)
- Simplify CustomCacheRasterDataset.__getitem__ to delegate to parent
  (parent now handles GeoSlice indexing, _merge_or_stack, sample dict)
- Update IntersectionDataset subclass to pass collate_fn as keyword arg
  (spatial_only is now 3rd positional parameter)
- Replace BoundingBox usage in pixel count methods with GeoSlice tuples
- Update splits.py to use new bounds format (tuple of slices)
- Update torchgeo_bb_to_shapely to handle Tensor bounds (v0.9 format)
- Fix test imports (LabelledRasterDataset -> ClassificationRasterDataset)
- Add test for Tensor-based bounds conversion
- Extract 4 100x100 patches from 34VCK Sentinel-2 tile with diverse label classes
- Extract sparse_raster.tif from real label data with 5 classes
- Update expected pixel counts in test_pixel_counts.py
- Update notebook class mapping to match real data
- Remove unused test_img.tif
@PaulDanielML PaulDanielML merged commit 408fea8 into main May 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant