Skip to content

Commit 1e40376

Browse files
committed
Fix scipy backend
1 parent 11fec41 commit 1e40376

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

xarray/backends/scipy_.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ def ds(self):
190190
def open_store_variable(self, name, var):
191191
return Variable(
192192
var.dimensions,
193-
# this backend always loads in to memory, so we don't wrap
194-
# with LazilyIndexedArray
195-
ScipyArrayWrapper(name, self),
193+
indexing.LazilyIndexedArray(ScipyArrayWrapper(name, self)),
196194
_decode_attrs(var._attributes),
197195
)
198196

xarray/coding/variables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def __getitem__(self, key) -> np.ndarray:
110110
def get_duck_array(self):
111111
return duck_array_ops.astype(self.array.get_duck_array(), dtype=self.dtype)
112112

113+
113114
def _apply_mask(
114115
data: np.ndarray,
115116
encoded_fill_values: list,

0 commit comments

Comments
 (0)