Skip to content

Commit cfffc6c

Browse files
authored
Merge pull request #3179 from bendichter/patch-9
Update nwbextractors.py
2 parents 11f480b + b6c8046 commit cfffc6c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/spikeinterface/extractors/nwbextractors.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,12 +497,13 @@ class NwbRecordingExtractor(BaseRecording, _BaseNWBExtractor):
497497
>>> from dandi.dandiapi import DandiAPIClient
498498
>>>
499499
>>> # get s3 path
500-
>>> dandiset_id, filepath = "101116", "sub-001/sub-001_ecephys.nwb"
501-
>>> with DandiAPIClient("https://api-staging.dandiarchive.org/api") as client:
502-
>>> asset = client.get_dandiset(dandiset_id, "draft").get_asset_by_path(filepath)
500+
>>> dandiset_id = "001054"
501+
>>> filepath = "sub-Dory/sub-Dory_ses-2020-09-14-004_ecephys.nwb"
502+
>>> with DandiAPIClient() as client:
503+
>>> asset = client.get_dandiset(dandiset_id).get_asset_by_path(filepath)
503504
>>> s3_url = asset.get_content_url(follow_redirects=1, strip_query=True)
504505
>>>
505-
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="fsspec", stream_cache_path="cache")
506+
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="remfile")
506507
"""
507508

508509
installation_mesg = "To use the Nwb extractors, install pynwb: \n\n pip install pynwb\n\n"

0 commit comments

Comments
 (0)