Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Aug 17, 2024
1 parent 961ec6a commit aa52ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ def quantile(
The American Statistician, 50(4), pp. 361-365, 1996
"""
if dim is None:
dim = self._group_dim
dim = (self._group_dim,)

# Dataset.quantile does this, do it for flox to ensure same output.
q = np.asarray(q, dtype=np.float64)
Expand Down
1 change: 1 addition & 0 deletions xarray/groupers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def __init__(
self.unique_coord = unique_coord

if coords is None:
assert not isinstance(self.unique_coord, _DummyGroup)
self.coords = _coordinates_from_variable(self.unique_coord)
else:
self.coords = coords
Expand Down

0 comments on commit aa52ce6

Please sign in to comment.