Skip to content

Commit a1a2dbf

Browse files
committed
Remove import of LazyIntegerRange
1 parent 194790d commit a1a2dbf

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

xarray/core/variable.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
from . import utils
1313
from . import nputils
1414
from .pycompat import basestring, OrderedDict, zip, dask_array_type
15-
from .indexing import (PandasIndexAdapter, orthogonally_indexable,
16-
LazyIntegerRange)
15+
from .indexing import (PandasIndexAdapter, orthogonally_indexable)
1716

1817
import xarray as xr # only for Dataset and DataArray
1918

@@ -82,14 +81,6 @@ def as_variable(obj, name=None, copy=False):
8281
return obj
8382

8483

85-
def default_index_coordinate(dim, size):
86-
"""
87-
This is equivalent to np.arange(size), but waits to create the array until
88-
its actually accessed.
89-
"""
90-
return IndexVariable(dim, LazyIntegerRange(size))
91-
92-
9384
def _maybe_wrap_data(data):
9485
"""
9586
Put pandas.Index and numpy.ndarray arguments in adapter objects to ensure

0 commit comments

Comments
 (0)