Skip to content

Commit 6d3887c

Browse files
HasanAhmadQ7shoyer
andauthored
Update xarray/core/indexing.py
Co-Authored-By: Stephan Hoyer <[email protected]>
1 parent 0f39a30 commit 6d3887c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def remap_label_indexers(data_obj, indexers, method=None, tolerance=None):
249249
'an associated coordinate.')
250250
pos_indexers[dim] = label
251251
else:
252-
coords_dtype = data_obj.coords[dim].values.dtype
252+
coords_dtype = data_obj.coords[dim].dtype
253253
label = maybe_cast_to_coords_dtype(label, coords_dtype)
254254
idxr, new_idx = convert_label_indexer(index, label,
255255
dim, method, tolerance)

0 commit comments

Comments
 (0)