Skip to content

Commit 68f170c

Browse files
committed
fix bug which broke alignment
1 parent 9c6397c commit 68f170c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/coordinates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def __len__(self):
307307
return sum(self._is_index_variable(key) for key in self._sizes)
308308

309309
def __contains__(self, key):
310-
self._is_index_variable(key)
310+
return self._is_index_variable(key)
311311

312312
def __getitem__(self, key):
313313
if not self._is_index_variable(key):

0 commit comments

Comments
 (0)