File tree 1 file changed +5
-9
lines changed 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -876,19 +876,15 @@ class MemoryCachedArray(ExplicitlyIndexedNDArrayMixin):
876
876
def __init__ (self , array ):
877
877
self .array = _wrap_numpy_scalars (as_indexable (array ))
878
878
879
- def _ensure_cached (self ):
880
- self .array = as_indexable (self .array .get_duck_array ())
881
-
882
- async def _async_ensure_cached (self ):
883
- duck_array = await self .array .async_get_duck_array ()
884
- self .array = as_indexable (duck_array )
885
-
886
879
def get_duck_array (self ):
887
- self ._ensure_cached ()
880
+ # first ensure the array object is cached
881
+ self .array = as_indexable (self .array .get_duck_array ())
888
882
return self .array .get_duck_array ()
889
883
890
884
async def async_get_duck_array (self ):
891
- await self ._async_ensure_cached ()
885
+ # first ensure the array object is cached
886
+ duck_array = await self .array .async_get_duck_array ()
887
+ self .array = as_indexable (duck_array )
892
888
return await self .array .async_get_duck_array ()
893
889
894
890
def _oindex_get (self , indexer : OuterIndexer ):
You can’t perform that action at this time.
0 commit comments