Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Dec 24, 2018
1 parent e2d4ad0 commit ba3077d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,7 +2912,7 @@ def reduce(self, func, dim=None, keep_attrs=None, numeric_only=False,
else:
dims = set(dim)

missing_dimensions = [dim for d in dims if d not in self.dims]
missing_dimensions = [d for d in dims if d not in self.dims]
if missing_dimensions:
raise ValueError('Dataset does not contain the dimensions: %s'
% missing_dimensions)
Expand Down Expand Up @@ -3711,7 +3711,7 @@ def quantile(self, q, dim=None, interpolation='linear',
else:
dims = set(dim)

_assert_empty([dim for d in dims if d not in self.dims],
_assert_empty([d for d in dims if d not in self.dims],
'Dataset does not contain the dimensions: %s')

q = np.asarray(q, dtype=np.float64)
Expand Down

0 comments on commit ba3077d

Please sign in to comment.