Skip to content

Commit

Permalink
Temp fix for returning first image instead of working on asset_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrsee1997 committed Feb 27, 2024
1 parent 3851238 commit 92febf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ def _slice_collection(self, image_slice: slice) -> ee.Image:
# Get the right range of Images in the collection, either a single image or
# a range of images...
self._ee_init_check()
return self.store.image_collection.first()
start, stop, stride = image_slice.indices(self.shape[0])

# If the input images have IDs, just slice them. Otherwise, we need to do
Expand Down

0 comments on commit 92febf4

Please sign in to comment.