Skip to content

Commit 6416a16

Browse files
HasanAhmadQ7HasanAhmadQ7
HasanAhmadQ7
authored and
HasanAhmadQ7
committed
fix bug: pep8 compatibility
line too long
1 parent 34d4115 commit 6416a16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xarray/core/dataset.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,13 +2327,14 @@ def interp_like(self, other, method='linear', assume_sorted=False,
23272327
def _maybe_cast_floats(self, indexers):
23282328
""" Cast float labels passed to sel() method to the float
23292329
types of the corresponding coordinates"""
2330-
from .dataarray import DataArray
2330+
from .dataarray import DataArray
23312331
casted_indexers = indexers.copy()
23322332
for k, v in indexers.items():
23332333
coords_var = self.coords[k].values
23342334
if isinstance(indexers[k], (slice, DataArray, Variable)):
23352335
pass
2336-
elif isinstance(coords_var, np.ndarray) and coords_var.dtype.kind == 'f':
2336+
elif isinstance(coords_var, np.ndarray) and
2337+
coords_var.dtype.kind == 'f':
23372338
casting_type = getattr(coords_var.dtype, "type")
23382339
casted_indexers[k] = casting_type(indexers[k])
23392340
return casted_indexers

0 commit comments

Comments
 (0)