-
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.
Add test_gallery.py and debug python_3.7 gallery tests (#53)
* first * Debug * Revert "Debug" This reverts commit 3d48d08. * Remove test code changing current dir from the tutorial * Update tox.ini * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update test_gallery.py * Update test_gallery.py * Update test_gallery.py * test_gallery * test_gallery * test_gallery * test_gallery * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update requirements-doc.txt * Update CHANGELOG.md * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update setup.py * Update plot_nwb_zarrio.py * Update plot_nwb_zarrio.py * Update plot_convert_nwb_hdf5.py * Update plot_zarr_io.py * Update plot_zarr_dataset_io.py * Update plot_nwb_zarrio.py * Update plot_zarr_dataset_io.py * Update plot_convert_nwb_hdf5.py * Use local copy of NWB file to avoid use of special characters in folder names (#61) * Fix #60 Use local copy of NWB file to avoid use of special characters in folder names * Remove DANDI as dependency for the docs * Remove extraneous close calls for io objects closed automatically by with contexts * Update test.py and test_gallery.py scripts to set consistent working directory for scripts * Updated changelog Co-authored-by: rly <[email protected]> Co-authored-by: Oliver Ruebel <[email protected]> Co-authored-by: Oliver Ruebel <[email protected]>
- Loading branch information
1 parent
e3d063a
commit e685e7d
Showing
14 changed files
with
253 additions
and
52 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
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
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,24 @@ | ||
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'``. The dataset ``general/extracellular_ephys/electrodes/group_name`` | ||
as part of the electrodes table was updated accordingly to list the appropriate group name. 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
+577 KB
docs/gallery/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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# dependencies to generate the documentation for HDMF | ||
sphinx | ||
sphinx_rtd_theme | ||
sphinx-gallery | ||
dandi | ||
matplotlib | ||
sphinx>=4 # improved support for docutils>=0.17 | ||
sphinx_rtd_theme>=1 # <1 does not work with docutils>=0.17 | ||
sphinx-gallery | ||
sphinx-copybutton |
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
Oops, something went wrong.