Skip to content

one.pid2eid not working for OneSdsc instance #118

@rai-pranav

Description

@rai-pranav

Reproducible script -

from deploy.iblsdsc import OneSdsc
one = OneSdsc(mode='local' , cache_rest=None)
one.pid2eid("af1e9dee-8c26-4b2b-ac43-358221048797")

I get the following error -

---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
Cell In[2], line 2
      1 one = OneSdsc(mode='local', cache_rest=None)
----> 2 one.pid2eid("af1e9dee-8c26-4b2b-ac43-358221048797")

File ~/projects/passive_ephys/.venv/lib/python3.10/site-packages/one/api.py:2026, in OneAlyx.pid2eid(self, pid, query_type)
   2024 if query_type == 'local':  # and 'insertions' not in self._cache.keys():
   2025     if 'insertions' not in self._cache.keys():
-> 2026         raise NotImplementedError('Converting probe IDs requires remote connection')
   2027     else:
   2028         # If local, use the cache table
   2029         pid = UUID(pid) if isinstance(pid, str) else pid

NotImplementedError: Converting probe IDs requires remote connection

It does not work even if I use one = OneSdsc(mode='local') .
I am using the following version of ONE and iblscripts.

iblscripts                 1.0.0  (Installed via pip install git+https://github.com/int-brain-lab/iblscripts.git)
ONE-api                  3.3.0

Is this something expected? And let me know if I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions