Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] exception when call label_index() on a Query object #2043

Closed
sric0880 opened this issue Aug 20, 2024 · 1 comment · Fixed by #2044
Closed

[BUG] exception when call label_index() on a Query object #2043

sric0880 opened this issue Aug 20, 2024 · 1 comment · Fixed by #2044

Comments

@sric0880
Copy link
Contributor

when call

A.query(attrs=['name'], coords=True).label_index(['dt'])

has a exception below:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[94], [line 24](vscode-notebook-cell:?execution_count=94&line=24)
     [22](vscode-notebook-cell:?execution_count=94&line=22)     print(non_empty_domain)
     [23](vscode-notebook-cell:?execution_count=94&line=23)     print(A.meta['last_day'])
---> [24](vscode-notebook-cell:?execution_count=94&line=24)     print(A.query(attrs=['name'], coords=True).label_index(['dt', 'symbol']))
     [25](vscode-notebook-cell:?execution_count=94&line=25)     # print(A.query(attrs=['name'], coords=True).label_index(['dt', 'symbol'])[:])
     [26](vscode-notebook-cell:?execution_count=94&line=26)     # print(a.keys())
     [28](vscode-notebook-cell:?execution_count=94&line=28) schema = tiledb.ArraySchema.load(array_bars_stock_daily)

File libtiledb.pyx:2158, in tiledb.libtiledb.Query.label_index()

ModuleNotFoundError: No module named 'tiledb.multirange_indexer'

In the source file libtiledb.pyx

    def label_index(self, labels):
        """Apply Array.label_index with query parameters."""
        from .multirange_indexer import LabelIndexer
        return LabelIndexer(self.array, tuple(labels), query=self)

multirange_indexer.py has already changed to multirange_indexing.py, so module 'tiledb.multirange_indexer' cannot be found.

@sric0880 sric0880 changed the title exception when call label_index() on a Query object [BUG] exception when call label_index() on a Query object Aug 20, 2024
@kounelisagis
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants