EmpytAlignment#

class ethograph.io.nwb_alignment.EmpytAlignment[source]#

Bases: object

Base session metadata interface with null-object defaults.

NWBAlignment overrides these with real NWB-backed implementations. When no NWB file is available, the base class is used directly.

Methods

close()

devices(stream)

electrical_series()

Discover ElectricalSeries in acquisition.

get_media(trial, stream[, device])

get_stream_rate(stream[, device])

print_session()

resolve_media_path(trial, stream[, device, ...])

restrict(obj, trial)

set_stream_rate(rate, stream[, device])

start_time(trial)

stop_time(trial)

stream_offset_for_trial(trial, stream[, device])

trial_epoch(trial)

electrical_series()[source]#

Discover ElectricalSeries in acquisition. Returns list of {name, path, n_channels, rate}.

Return type:

list[dict]

property individuals: list[str]#

The individuals this session labels, in the order they were declared; [] when unknown.

media_folders()[source]#

Per stream, the folder its files were paired from, when that folder exists here.

Read off the full paths each stream’s ImageSeries records, so the GUI can seed its folder settings on first open instead of asking.

Return type:

dict[str, Path]

property trials_ep: Any#

Pynapple IntervalSet built from trials_df start/stop times.