Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 20, 2024
1 parent 8f36f89 commit 74206b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions odc/geo/_xr_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ def nodata(self, value: Nodata):
to_cog = _wrap_op(to_cog)
compress = _wrap_op(compress)
add_to = _wrap_op(add_to)



@xarray.register_dataset_accessor("odc")
Expand Down Expand Up @@ -1100,7 +1100,7 @@ def to_rgba(
vmax: Optional[float] = None,
) -> xarray.DataArray:
return to_rgba(self._xx, bands=bands, vmin=vmin, vmax=vmax)

scale_and_offset = _wrap_op(scale_and_offset_dataset)


Expand Down Expand Up @@ -1324,4 +1324,3 @@ def rasterize(
invert=value_inside,
)
return wrap_xr(pix, geobox)

2 changes: 1 addition & 1 deletion odc/geo/masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def scale_and_offset(xx: DataArray, scale: float | None, offset: float | None, i
# Scales and offsets is used by GDAL. Should make sure we set these in loaders
if scale is None:
scale = xx.attrs.get("scales")

if offset is None:
offset = xx.attrs.get("offsets")

Expand Down

0 comments on commit 74206b4

Please sign in to comment.