Skip to content

Commit

Permalink
Update xarray/core/indexing.py
Browse files Browse the repository at this point in the history
Co-Authored-By: Stephan Hoyer <shoyer@gmail.com>
  • Loading branch information
HasanAhmadQ7 and shoyer committed Aug 4, 2019
1 parent 0f39a30 commit 6d3887c
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 @@ -249,7 +249,7 @@ def remap_label_indexers(data_obj, indexers, method=None, tolerance=None):
'an associated coordinate.')
pos_indexers[dim] = label
else:
coords_dtype = data_obj.coords[dim].values.dtype
coords_dtype = data_obj.coords[dim].dtype
label = maybe_cast_to_coords_dtype(label, coords_dtype)
idxr, new_idx = convert_label_indexer(index, label,
dim, method, tolerance)
Expand Down

0 comments on commit 6d3887c

Please sign in to comment.