Skip to content

Commit

Permalink
Update nwbextractors.py
Browse files Browse the repository at this point in the history
use latest tooling for streaming data
  • Loading branch information
bendichter authored Jul 10, 2024
1 parent e4fa25a commit 77cad28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/extractors/nwbextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,11 @@ class NwbRecordingExtractor(BaseRecording, _BaseNWBExtractor):
>>>
>>> # get s3 path
>>> dandiset_id, filepath = "101116", "sub-001/sub-001_ecephys.nwb"
>>> with DandiAPIClient("https://api-staging.dandiarchive.org/api") as client:
>>> with DandiAPIClient() as client:
>>> asset = client.get_dandiset(dandiset_id, "draft").get_asset_by_path(filepath)
>>> s3_url = asset.get_content_url(follow_redirects=1, strip_query=True)
>>>
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="fsspec", stream_cache_path="cache")
>>> rec = NwbRecordingExtractor(s3_url, stream_mode="remfile")
"""

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

0 comments on commit 77cad28

Please sign in to comment.