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. The event_type column is omitted when it equals the default ("state") so files stay backward-compatible with older readers.

Parameters:
Return type:

None