Skip to content

Commit b8ab23c

Browse files
authored
Merge pull request #134 from AllenInstitute/dev
Dev
2 parents 0dce401 + ad9bfe3 commit b8ab23c

File tree

7 files changed

+3829
-6
lines changed

7 files changed

+3829
-6
lines changed

docs/basics/use_nwbwidgets.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"source": [
88
"# Exploring an NWB File\n",
9-
"It can get cumbersome to manually dissect an NWB file with print statements. There are a few ways to view an NWB graphically instead. A great way to do this in a Jupyter notebook is with [NWBWidgets](https://github.com/NeurodataWithoutBorders/nwbwidgets). Here, you can use NWBWidgets to view a file from a location on your machine. If you don't want to download a file just to view it, you can still use NWBWidgets to view it remotely. Check out *Stream an NWB File with fsspec* to learn how to do this. Another way to explore an NWB file, that doesn't require Jupyter, is with [HDFView](https://www.hdfgroup.org/downloads/hdfview/)."
9+
"It can get cumbersome to manually dissect an NWB file with print statements. There are a few ways to view an NWB graphically instead. A great way to do this in a Jupyter notebook is with [NWBWidgets](https://github.com/NeurodataWithoutBorders/nwbwidgets). Here, you can use NWBWidgets to view a file from a location on your machine. If you don't want to download a file just to view it, you can still use NWBWidgets to view it remotely. Check out [Streaming an NWB File with fsspec](./stream_nwb.ipynb) to learn how to do this. Another way to explore an NWB file, that doesn't require Jupyter, is with [HDFView](https://www.hdfgroup.org/downloads/hdfview/)."
1010
]
1111
},
1212
{

docs/visualization/visualize_2p_raw.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"import fsspec\n",
3030
"import h5py\n",
3131
"import numpy as np\n",
32-
"import pynwb\n",
3332
"\n",
3433
"from dandi import dandiapi\n",
3534
"from fsspec.implementations.cached import CachingFileSystem\n",
3635
"from matplotlib import pyplot as plt\n",
3736
"from mpl_interactions import hyperslicer\n",
38-
"from nwbwidgets import nwb2widget"
37+
"from nwbwidgets import nwb2widget\n",
38+
"from pynwb import NWBHDF5IO"
3939
]
4040
},
4141
{
@@ -55,7 +55,7 @@
5555
"outputs": [],
5656
"source": [
5757
"dandiset_id = \"000336\"\n",
58-
"dandi_filepath = \"1186140941/1212553658/1212705237_raw.nwb\"\n",
58+
"dandi_filepath = \"sub_1186140941/sub_1186140941sess_1212553658/sub_1186140941+sess_1212553658+exp_1212705237+raw_ophys.nwb\"\n",
5959
"authenticate = True\n",
6060
"dandi_api_key = os.environ['DANDI_API_KEY']"
6161
]
@@ -124,7 +124,7 @@
124124
"# opening may take awhile on a large file\n",
125125
"f = fs.open(file_url, \"rb\")\n",
126126
"file = h5py.File(f)\n",
127-
"io = pynwb.NWBHDF5IO(file=file, mode='r', load_namespaces=True)\n",
127+
"io = NWBHDF5IO(file=file, mode='r', load_namespaces=True)\n",
128128
"nwb = io.read()"
129129
]
130130
},

0 commit comments

Comments
 (0)