Skip to content

refactor!: Rename Array to RasterArray - #131

Merged
kylebarron merged 4 commits into
mainfrom
kyle/rename-array-to-raster
Mar 26, 2026
Merged

kylebarron merged 4 commits into
mainfrom
kyle/rename-array-to-raster

Conversation

@kylebarron

@kylebarron kylebarron commented Mar 26, 2026 •

Copy link
Copy Markdown
Member

Renames Array to RasterArray.

  • The Array class contains transform and crs, meaning that the referenced array is fully georeferenced.
  • the term Raster is ambiguous as to whether it's representing a handle to a resource that hasn't been loaded yet
  • RasterArray should be clear that the data is loaded in memory.

Closes #130

@kylebarron kylebarron changed the title Kyle/rename array to raster refactor!: Rename Array to RasterArray Mar 26, 2026
@kylebarron kylebarron changed the title refactor!: Rename Array to RasterArray refactor!: Rename Array to RasterArray Mar 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.Array to RasterArray and 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 RasterArray API 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.

Comment thread src/async_geotiff/_array.py Resolved
Comment thread src/async_geotiff/_fetch.py Resolved
@kylebarron
kylebarron enabled auto-merge (squash) March 26, 2026 14:24
@kylebarron
kylebarron merged commit 9a10e8d into main Mar 26, 2026
6 checks passed
@kylebarron
kylebarron deleted the kyle/rename-array-to-raster branch March 26, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename Array to Raster or RasterArray

2 participants