Skip to content

Commit

Permalink
lint error fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabhicusp committed Mar 28, 2024
1 parent c0d8aa2 commit 7beabcf
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,14 @@ def get_info(self) -> Dict[str, Any]:
if isinstance(self.geometry, ee.Geometry):
rpcs.append(('bounds', self.geometry.bounds(1, proj=self.projection)))
else:
rpcs.append((
'bounds',
self.image_collection.first()
.geometry()
.bounds(1, proj=self.projection),
))
rpcs.append(
(
'bounds',
self.image_collection.first()
.geometry()
.bounds(1, proj=self.projection),
)
)

# TODO(#29, #30): This RPC call takes the longest time to compute. This
# requires a full scan of the images in the collection, which happens on the
Expand All @@ -298,14 +300,16 @@ def get_info(self) -> Dict[str, Any]:
# client-side. Ideally, this would live behind a xarray-backend-specific
# feature flag, since it's not guaranteed that data is this consistent.
columns = ['system:id', self.primary_dim_property]
rpcs.append((
'properties',
rpcs.append(
(
self.image_collection.reduceColumns(
ee.Reducer.toList().repeat(len(columns)), columns
).get('list')
),
))
'properties',
(
self.image_collection.reduceColumns(
ee.Reducer.toList().repeat(len(columns)), columns
).get('list')
),
)
)

info = ee.List([rpc for _, rpc in rpcs]).getInfo()

Expand Down

0 comments on commit 7beabcf

Please sign in to comment.