save_label_mapping#
- ethograph.labels.intervals.save_label_mapping(mapping_file, mappings)[source]#
Write a label mapping back to disk, preserving branch and event_type.
Lines have the form
<id> <name> <branch> <event_type>for scalar IDs. Theevent_typecolumn is omitted when it equals the default ("state") so files stay backward-compatible with older readers.