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 Jan 19, 2025
1 parent 82cb8b9 commit 6b366de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xarray/coding/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ def encode(self, variable: Variable, name: T_Name = None):
# XXX: Is this actually needed? Doesn't the backend handle this?
signed_dtype = np.dtype(f"i{dtype.itemsize}")
data = duck_array_ops.view(
duck_array_ops.astype(duck_array_ops.around(data), signed_dtype),
dtype
duck_array_ops.astype(duck_array_ops.around(data), signed_dtype), dtype
)
attrs["_FillValue"] = fill_value

Expand Down

0 comments on commit 6b366de

Please sign in to comment.