diff --git a/tiledb/array.py b/tiledb/array.py index 22d1fbd91b..12919d912f 100644 --- a/tiledb/array.py +++ b/tiledb/array.py @@ -416,17 +416,14 @@ def load_typed(cls, uri, mode="r", key=None, timestamp=None, attr=None, ctx=None if ctx is None: ctx = default_ctx() - from .dense_array import DenseArrayImpl - from .sparse_array import SparseArrayImpl - tmp_array = preload_array(uri, mode, key, timestamp, ctx) if tmp_array._schema()._array_type == lt.ArrayType.SPARSE: - return SparseArrayImpl( + return tiledb.SparseArray( uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array ) else: - return DenseArrayImpl( + return tiledb.DenseArray( uri, mode, key, timestamp, attr, ctx, preloaded_array=tmp_array )