Skip to content

Commit

Permalink
Client: Fix v1.12.0 client bugs (#11525)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: ab5957a8777b5b2cd1148149301774fa9ceb104c
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Feb 6, 2023
1 parent 34a2f51 commit 0f6a253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ def make_rasterio_geotiff(outfile, chunk_iter, metadata, blosc_meta, compress, n
# each "chunk" corresponds to a raster block (ie tile) by design
for chunk, (_, window) in zip(chunk_iter, dst.block_windows()):
# swap axis order from (rows, cols, bands) to (bands, rows, cols)
arr = np.transpose(chunk, [2, 0, 1])
# single bands come back as 2d
arr = np.transpose(np.atleast_3d(chunk), [2, 0, 1])
dst.write(arr, window=window)


Expand Down
2 changes: 1 addition & 1 deletion descarteslabs/_dl_modules/workflows/interactive/map_.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def geocontext(self, resolution=None, shape=None, crs="EPSG:3857"):
-------
geoctx: descarteslabs.geo.AOI
"""
from ..common.geo import AOI
from ...common.geo import AOI

bounds = [self.west, self.south, self.east, self.north]
if bounds == [0, 0, 0, 0]:
Expand Down

0 comments on commit 0f6a253

Please sign in to comment.