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 Sep 22, 2022
1 parent d5aed4a commit 525c045
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xarray/core/nanops.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def _replace_nan(a, val):
return where_method(val, mask, a), mask



def _maybe_null_out(result, axis, mask, min_count=1):
"""
xarray version of pandas.core.nanops._maybe_null_out
Expand Down Expand Up @@ -106,7 +105,7 @@ def nansum(a, axis=None, dtype=None, out=None, min_count=None):
result = xp.sum(a, axis=axis, dtype=dtype)
else:
mask = isnull(a)
result = np.nansum(a, axis=axis, dtype=dtype)
result = np.nansum(a, axis=axis, dtype=dtype)
if min_count is not None:
return _maybe_null_out(result, axis, mask, min_count)
else:
Expand Down

0 comments on commit 525c045

Please sign in to comment.