open#

ethograph.open(path)[source]#

Load a TrialTree from a saved NetCDF file.

Shorthand for TrialTree.open.

Parameters:

path (str or Path) – Path to a .nc file previously saved with dt.save().

Return type:

TrialTree

Examples

>>> import ethograph as eto
>>> dt = eto.open("experiment.nc")
>>> dt.trials
[1, 2, 3]
>>> ds = dt.itrial(0)