Skip to content

Commit 77cad28

Browse files
authored
Update nwbextractors.py
use latest tooling for streaming data
1 parent e4fa25a commit 77cad28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spikeinterface/extractors/nwbextractors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,11 +498,11 @@ class NwbRecordingExtractor(BaseRecording, _BaseNWBExtractor):
498498
>>>
499499
>>> # get s3 path
500500
>>> dandiset_id, filepath = "101116", "sub-001/sub-001_ecephys.nwb"
501-
>>> with DandiAPIClient("https://api-staging.dandiarchive.org/api") as client:
501+
>>> with DandiAPIClient() as client:
502502
>>> asset = client.get_dandiset(dandiset_id, "draft").get_asset_by_path(filepath)
503503
>>> s3_url = asset.get_content_url(follow_redirects=1, strip_query=True)
504504
>>>
505-
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="fsspec", stream_cache_path="cache")
505+
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="remfile")
506506
"""
507507

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

0 commit comments

Comments
 (0)