dandi / example-notebooks

https://www.dandiarchive.org/example-notebooks
Apache License 2.0
6 stars 18 forks source link

Adding notebook for dandiset `000727` #68

Closed h-mayorquin closed 5 months ago

h-mayorquin commented 9 months ago

As requested by @bendichter. A simple notebook explaining how to read data and showing some processing and plots.

yarikoptic commented 5 months ago

would you be so kind to rebase this PR so we get codespell to check it. If it is red - please attend to typos it might have found. @bendichter - would you be able to provide review for this contribution (as the original motivator ;) )?

bendichter commented 5 months ago

This might be easier using remfile instead of fsspec:

from h5py import File
from pynwb import NWBHDF5IO
import remfile

file = remfile.File(url)
h5_file = File(file, "r")

io = NWBHDF5IO(file=h5_file, load_namespaces=True)
nwbfile = io.read()
nwbfile

Could you also include a call to nwbfile at the end so that the interactive HTML repr is displayed?

Doing so reveals other neurodata objects. Could you demonstrate reading and plotting one of the spatial series in FicTrac?

bendichter commented 5 months ago

You can utilize the new TimeSeries.get_timestamps() method

h-mayorquin commented 5 months ago

OK: