Pynapple IO#
Loaders and augmenters for pynapple-backed data (NWB files and .npz
pynapple folders). These are the pynapple counterparts of the xarray
builders in Dataset.
Loading#
- ethograph.io.pynapple.load_nap_data(path)[source]#
Load pynapple data from a file or folder.
Supports
.nwb,.npz, or a directory (pynapple folder). When loading a single.npz, sibling files in the same directory are also loaded (e.g.trials.npzalongsidespeed.npz).- Return type:
tuple[dict, nap.IntervalSet | None]
- Returns:
data (dict) – Loaded pynapple objects keyed by name.
trials_ep (IntervalSet or None) – Trial intervals if found in the data.
- ethograph.io.pynapple.detect_trials(data)[source]#
Find a trials IntervalSet in a loaded pynapple data dict.
- Return type:
nap.IntervalSet | None
Building#
NWB import probes#
These helpers inspect an NWB file to discover what is available for import (trials, behavioural series, electrical series, label sources).