Skip to content
forked from pydata/xarray

Commit

Permalink
Remove _numpy_groupies.py module
Browse files Browse the repository at this point in the history
  • Loading branch information
andersy005 committed Aug 13, 2021
1 parent f088392 commit 35944e4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 139 deletions.
118 changes: 0 additions & 118 deletions xarray/core/_numpy_groupies.py

This file was deleted.

42 changes: 21 additions & 21 deletions xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)

if XARRAY_NUMPY_GROUPIES:
from ._numpy_groupies import xarray_reduce
from dask_groupby.xarray import xarray_reduce


def check_reduce_dims(reduce_dims, dimensions):
Expand Down Expand Up @@ -890,7 +890,7 @@ def reduce_array(ar):

if XARRAY_NUMPY_GROUPIES:

def sum(self, dim=None, *, fill_value=None, blockwise=True):
def sum(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -901,7 +901,7 @@ def sum(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def mean(self, dim=None, *, fill_value=None, blockwise=True):
def mean(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -912,7 +912,7 @@ def mean(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def std(self, dim=None, *, fill_value=None, blockwise=True):
def std(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -923,7 +923,7 @@ def std(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def var(self, dim=None, *, fill_value=None, blockwise=True):
def var(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -934,7 +934,7 @@ def var(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def max(self, dim=None, *, fill_value=None, blockwise=True):
def max(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -945,7 +945,7 @@ def max(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def min(self, dim=None, *, fill_value=None, blockwise=True):
def min(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -956,7 +956,7 @@ def min(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def argmin(self, dim=None, *, fill_value=None, blockwise=True):
def argmin(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -967,7 +967,7 @@ def argmin(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def argmax(self, dim=None, *, fill_value=None, blockwise=True):
def argmax(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -978,7 +978,7 @@ def argmax(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def frist(self, dim=None, *, fill_value=None, blockwise=True):
def frist(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -989,7 +989,7 @@ def frist(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def last(self, dim=None, *, fill_value=None, blockwise=True):
def last(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand Down Expand Up @@ -1107,7 +1107,7 @@ def _combine(self, applied):

if XARRAY_NUMPY_GROUPIES:

def sum(self, dim=None, *, fill_value=None, blockwise=True):
def sum(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1118,7 +1118,7 @@ def sum(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def mean(self, dim=None, *, fill_value=None, blockwise=True):
def mean(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1129,7 +1129,7 @@ def mean(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def std(self, dim=None, *, fill_value=None, blockwise=True):
def std(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1140,7 +1140,7 @@ def std(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def var(self, dim=None, *, fill_value=None, blockwise=True):
def var(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1151,7 +1151,7 @@ def var(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def max(self, dim=None, *, fill_value=None, blockwise=True):
def max(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1162,7 +1162,7 @@ def max(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def min(self, dim=None, *, fill_value=None, blockwise=True):
def min(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1173,7 +1173,7 @@ def min(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def argmin(self, dim=None, *, fill_value=None, blockwise=True):
def argmin(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1184,7 +1184,7 @@ def argmin(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def argmax(self, dim=None, *, fill_value=None, blockwise=True):
def argmax(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1195,7 +1195,7 @@ def argmax(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def frist(self, dim=None, *, fill_value=None, blockwise=True):
def frist(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand All @@ -1206,7 +1206,7 @@ def frist(self, dim=None, *, fill_value=None, blockwise=True):
expected_groups=(self._unique_coord.data,),
)

def last(self, dim=None, *, fill_value=None, blockwise=True):
def last(self, dim=None, *, fill_value=None, blockwise=False):
return xarray_reduce(
self._obj,
self._group,
Expand Down

0 comments on commit 35944e4

Please sign in to comment.