Skip to content

Commit

Permalink
BUG: Allow unsigned integer indexing, fixes pydata#1405
Browse files Browse the repository at this point in the history
Permit indexing with unsigned integers.  This should fix pydata#1405.
  • Loading branch information
gerritholl authored May 11, 2017
1 parent fd6e36e commit a52737f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def canonicalize(indexer):
'1d arrays')
if indexer.dtype.kind == 'b':
indexer, = np.nonzero(indexer)
elif indexer.dtype.kind != 'i':
elif indexer.dtype.kind not in 'ui':
raise ValueError('invalid subkey %r for integer based '
'array indexing; all subkeys must be '
'slices, integers or sequences of '
Expand Down

0 comments on commit a52737f

Please sign in to comment.