Skip to content

Commit

Permalink
Update data_as_image to return masked values (#635)
Browse files Browse the repository at this point in the history
* Update `data_as_image` to return masked values

* Update CHANGES.md
  • Loading branch information
JackDunnNZ authored Aug 21, 2023
1 parent 45fc03c commit 322533c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 6.0.2 (unreleased)

* Update `data_as_image` to return masked values (author @JackDunnNZ, https://github.com/cogeotiff/rio-tiler/pull/635)

# 6.0.1 (2023-07-25)

Expand Down
2 changes: 1 addition & 1 deletion rio_tiler/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def data_as_image(self) -> numpy.ndarray:
(bands, rows, columns) -> (rows, columns, bands).
"""
return reshape_as_image(self.array.data)
return reshape_as_image(self.array)

@property
def width(self) -> int:
Expand Down

0 comments on commit 322533c

Please sign in to comment.