Skip to content

Commit

Permalink
fix bug which broke alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
rabernat committed Sep 10, 2018
1 parent 9c6397c commit 68f170c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def __len__(self):
return sum(self._is_index_variable(key) for key in self._sizes)

def __contains__(self, key):
self._is_index_variable(key)
return self._is_index_variable(key)

def __getitem__(self, key):
if not self._is_index_variable(key):
Expand Down

0 comments on commit 68f170c

Please sign in to comment.