Skip to content

Commit b6c8046

Browse files
committed
Use a non-draft dataset in NWB streaming docstring
1 parent 77cad28 commit b6c8046

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/spikeinterface/extractors/nwbextractors.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,10 @@ 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"
500+
>>> dandiset_id = "001054"
501+
>>> filepath = "sub-Dory/sub-Dory_ses-2020-09-14-004_ecephys.nwb"
501502
>>> with DandiAPIClient() as client:
502-
>>> asset = client.get_dandiset(dandiset_id, "draft").get_asset_by_path(filepath)
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
>>>
505506
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="remfile")

0 commit comments

Comments
 (0)