Skip to content

Commit

Permalink
fix(datacube) : bbox query
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Oct 10, 2024
1 parent 7e3bf94 commit 37be862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion earthdaily/earthdatastore/mask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
class Mask:
def __init__(self, dataset: xr.Dataset, intersects=None, bbox=None):
self._obj = dataset
if bbox and intersects is None:
if bbox is not None and intersects is None:
intersects = _bbox_to_intersects(bbox)
if isinstance(intersects, gpd.GeoDataFrame):
intersects = intersects.to_crs(self._obj.rio.crs)
Expand Down

0 comments on commit 37be862

Please sign in to comment.