Skip to content

Commit

Permalink
Fix 'alias of' for DenseArray and SparseArray
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelisagis committed May 17, 2024
1 parent 586c602 commit b54a118
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doc/source/python-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Array
Dense Array
-----------

.. autoclass:: tiledb.libtiledb.DenseArrayImpl
.. autoclass:: tiledb.DenseArray
:members:

.. automethod:: __getitem__(selection)
Expand All @@ -124,7 +124,7 @@ Dense Array
Sparse Array
------------

.. autoclass:: tiledb.libtiledb.SparseArrayImpl
.. autoclass:: tiledb.SparseArray
:members:

.. automethod:: __getitem__(selection)
Expand Down
16 changes: 8 additions & 8 deletions tiledb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
vacuum,
walk,
)
from .libtiledb import DenseArrayImpl as DenseArray
from .libtiledb import SparseArrayImpl as SparseArray
from .libtiledb import DenseArrayImpl
from .libtiledb import SparseArrayImpl
from .multirange_indexing import EmptyRange
from .object import Object
from .parquet_ import from_parquet
Expand Down Expand Up @@ -134,13 +134,13 @@
try:
from tiledb.cloud.cloudarray import CloudArray
except ImportError:
pass
class DenseArray(DenseArrayImpl):
pass
class SparseArray(SparseArrayImpl):
pass
else:

class DenseArray(DenseArray, CloudArray):
class DenseArray(DenseArrayImpl, CloudArray):
pass

class SparseArray(SparseArray, CloudArray):
class SparseArray(SparseArrayImpl, CloudArray):
pass

del CloudArray

0 comments on commit b54a118

Please sign in to comment.