Resources

sub-healthy-simulated-beta_ses-162_ecephys.nwb

This NWB file was downloaded from Dandiset 001333

 1import os
 2from dandi.dandiapi import DandiAPIClient
 3
 4dandiset_id = "001333"
 5filepath = "sub-healthy-simulated-beta/sub-healthy-simulated-beta_ses-162_ecephys.nwb"   # 220 KiB file
 6with DandiAPIClient() as client:
 7    asset = client.get_dandiset(dandiset_id, 'draft').get_asset_by_path(filepath)
 8
 9s3_path = asset.get_content_url(follow_redirects=1, strip_query=True)
10filename = os.path.basename(asset.path)
11asset.download(filename)