CrowsettaLabelConverter#
- class ethograph.labels.converters.CrowsettaLabelConverter(file_path, format_name, name_to_id, individual='ind0')[source]#
Bases:
LabelConverterConvert crowsetta annotation files to ethograph intervals.
Crowsetta labels are already in file-local time, so no trial table is needed for time conversion. If a
trials_dfis provided the first trial id is attached; otherwisetrial=1.Methods
extract([trials_df])Return an all-labels DataFrame (with
trialcolumn).resolve_labels(source_path, trial_ids[, ...])Load labels with fallback: existing TSV → extract from source → empty.