Skip to content

Commit

Permalink
Specify as structured array (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbcode authored Dec 19, 2023
1 parent 4a62eb9 commit 81d0249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geemap/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3362,8 +3362,8 @@ def ee_to_numpy(
kwargs['bandIds'] = bands

try:
image_arr1 = ee.data.computePixels(kwargs)
array = np.dstack(([image_arr1[band] for band in image_arr1.dtype.names]))
struct_array = ee.data.computePixels(kwargs)
array = np.dstack(([struct_array[band] for band in struct_array.dtype.names]))
return array
except Exception as e:
raise Exception(e)
Expand Down

0 comments on commit 81d0249

Please sign in to comment.