We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a734b7 commit 35f34a5Copy full SHA for 35f34a5
xarray/indexes/nd_point_index.py
@@ -250,7 +250,7 @@ def from_variables(
250
*,
251
options: Mapping[str, Any],
252
) -> Self:
253
- if len(set([var.dims for var in variables.values()])) > 1:
+ if len({var.dims for var in variables.values()}) > 1:
254
var_names = ",".join(vn for vn in variables)
255
raise ValueError(
256
f"variables {var_names} must all have the same dimensions and the same shape"
0 commit comments