Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
robbibt committed Dec 28, 2023
1 parent 84908d1 commit e88e462
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions odc/geo/_xr_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ def mask(xx: XrT, poly: Geometry, all_touched: bool = True) -> XrT:
return xx_masked


def crop(xx: XrT, poly: Geometry, apply_mask: bool = True, all_touched: bool = True) -> XrT:
def crop(
xx: XrT, poly: Geometry, apply_mask: bool = True, all_touched: bool = True
) -> XrT:
"""
Crops and optionally mask an xr.Dataset or xr.DataArray (``xx``) to
the spatial extent of a geometry (``poly``).
Expand Down Expand Up @@ -777,7 +779,6 @@ def map_bounds(self) -> Tuple[Tuple[float, float], Tuple[float, float]]:
crop = _wrap_op(crop)



@xarray.register_dataarray_accessor("odc")
class ODCExtensionDa(ODCExtension):
"""
Expand Down

0 comments on commit e88e462

Please sign in to comment.