Repository navigation
Stream data from EMBER dandiset #186
Unanswered
alessandratrapani
asked this question in
Q&A
Replies: 2 comments 1 reply
|
there should be! Just when you initialize your Disclaimer: I said "should" since didn't try myself ;) Please report back if works. |
0 replies
|
with: from dandi.dandiapi import DandiAPIClient
with DandiAPIClient(dandi_instance="ember") as client:
...I get this error: 1 from dandi.dandiapi import DandiAPIClient, DandiInstance
----> 5 with DandiAPIClient(dandi_instance="ember") as client:
6 # client.dandi_authenticate()
7
8 # Search for assets matching our pattern in the draft version of the dandisets
9 assets = client.get_dandiset(dandiset_id, "draft").get_assets()
File ~\anaconda3\envs\kind_lab_to_nwb_env\Lib\site-packages\dandi\dandiapi.py:434, in DandiAPIClient.__init__(self, api_url, token, dandi_instance)
432 instance_name = os.environ.get("DANDI_INSTANCE", "dandi")
433 dandi_instance = get_instance(instance_name)
--> 434 api_url = dandi_instance.api
435 elif dandi_instance is not None:
436 raise ValueError("api_url and dandi_instance are mutually exclusive")
AttributeError: 'str' object has no attribute 'api'But if I define the DandiInstance, it is working: from dandi.dandiapi import DandiAPIClient, DandiInstance
dandi_instance = DandiInstance(
"ember",
"https://dandi.emberarchive.org",
"https://api-dandi.emberarchive.org/api",
)
with DandiAPIClient(dandi_instance=dandi_instance) as client:
...However, I could not find documentation for this specific operation. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
Is there a way to stream data from EMBER similarly to what is done from the DANDI Archive?
I would like to adapt the following code to stream from an emberset:
All reactions