Skip to content

Commit e096e6a

Browse files
authored
BugFix: Arrays losing CloudArray interface (#2144)
1 parent e1f57bd commit e096e6a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tiledb/array.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,17 +416,14 @@ def load_typed(cls, uri, mode="r", key=None, timestamp=None, attr=None, ctx=None
416416
if ctx is None:
417417
ctx = default_ctx()
418418

419-
from .dense_array import DenseArrayImpl
420-
from .sparse_array import SparseArrayImpl
421-
422419
tmp_array = preload_array(uri, mode, key, timestamp, ctx)
423420

424421
if tmp_array._schema()._array_type == lt.ArrayType.SPARSE:
425-
return SparseArrayImpl(
422+
return tiledb.SparseArray(
426423
uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array
427424
)
428425
else:
429-
return DenseArrayImpl(
426+
return tiledb.DenseArray(
430427
uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array
431428
)
432429

0 commit comments

Comments
 (0)