Skip to content

Commit aa52ce6

Browse files
committed
Fix types
1 parent 961ec6a commit aa52ce6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xarray/core/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ def quantile(
10491049
The American Statistician, 50(4), pp. 361-365, 1996
10501050
"""
10511051
if dim is None:
1052-
dim = self._group_dim
1052+
dim = (self._group_dim,)
10531053

10541054
# Dataset.quantile does this, do it for flox to ensure same output.
10551055
q = np.asarray(q, dtype=np.float64)

xarray/groupers.py

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def __init__(
106106
self.unique_coord = unique_coord
107107

108108
if coords is None:
109+
assert not isinstance(self.unique_coord, _DummyGroup)
109110
self.coords = _coordinates_from_variable(self.unique_coord)
110111
else:
111112
self.coords = coords

0 commit comments

Comments
 (0)