-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #60 Use local copy of NWB file to avoid use of special charactes …
…in folder names
- Loading branch information
Showing
5 changed files
with
52 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Resources | ||
========= | ||
|
||
sub_anm00239123_ses_20170627T093549_ecephys_and_ogen.nwb | ||
-------------------------------------------------------- | ||
|
||
This NWB file was downloaded from `DANDIset 000009 <https://dandiarchive.org/dandiset/000009/0.220126.1903>`_ | ||
The file was modified to replace ``:`` characters used in the name of the ``ElectrodeGroup`` called ``ADunit: 32`` in | ||
``'general/extracellular_ephys/`` to ``'ADunit_32'``. This is to avoid issues on Windows file systems that do not | ||
support ``:`` as part of folder names. The asses can be downloaded from DANDI via: | ||
|
||
.. code-block:: python | ||
:linenos: | ||
from dandi.dandiapi import DandiAPIClient | ||
dandiset_id = "000009" | ||
filepath = "sub-anm00239123/sub-anm00239123_ses-20170627T093549_ecephys+ogen.nwb" # ~0.5MB file | ||
with DandiAPIClient() as client: | ||
asset = client.get_dandiset(dandiset_id, 'draft').get_asset_by_path(filepath) | ||
s3_path = asset.get_content_url(follow_redirects=1, strip_query=True) | ||
filename = os.path.basename(asset.path) | ||
asset.download(filename) | ||
Binary file added
BIN
+573 KB
docs/resources/sub_anm00239123_ses_20170627T093549_ecephys_and_ogen.nwb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters