Repository navigation
refactor!: Rename Array to RasterArray - #131
Merged
Merged
Conversation
Array to RasterArray
There was a problem hiding this comment.
Pull request overview
This PR performs a breaking API refactor to rename the georeferenced in-memory Array type to RasterArray, aligning naming with the object’s semantics (loaded, georeferenced pixel data) and updating public exports and documentation accordingly.
Changes:
- Rename
async_geotiff._array.ArraytoRasterArrayand update construction sites (_create, window reads, tile fetch). - Update type annotations/return types in tile/fetch/read paths to use
RasterArray. - Update docs and MkDocs navigation to reference the new
RasterArrayAPI page.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/async_geotiff/_tile.py | Update Tile.array type to RasterArray. |
| src/async_geotiff/_read.py | Return RasterArray from read APIs and construct RasterArray in window reads. |
| src/async_geotiff/_fetch.py | Construct RasterArray for decoded tiles and update helper signatures. |
| src/async_geotiff/_array.py | Rename the core dataclass to RasterArray and update doc references. |
| src/async_geotiff/init.py | Export RasterArray from the package root and update __all__. |
| mkdocs.yml | Point API nav from api/array.md to api/raster-array.md. |
| docs/blog/posts/introducing-async-geotiff.md | Update blog references from Array to RasterArray. |
| docs/api/raster-array.md | Add new API reference page for RasterArray. |
| docs/api/array.md | Remove old API reference page for Array. |
| README.md | Update README wording to reference RasterArray. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Renames
ArraytoRasterArray.Arrayclass containstransformandcrs, meaning that the referenced array is fully georeferenced.Rasteris ambiguous as to whether it's representing a handle to a resource that hasn't been loaded yetRasterArrayshould be clear that the data is loaded in memory.Closes #130