waveform_editor.yaml.yaml_parser.YamlParser

class waveform_editor.yaml.yaml_parser.YamlParser(config)

Bases: object

__init__(config)

Methods

__init__(config)

generate_yaml_str(key, value)

Generate YAML string for a key-value pair, ensuring comments are retained.

load_yaml(yaml_str)

Parses a YAML string and populates the WaveformConfiguration.

parse_waveform(yaml_str)

Loads a YAML structure from a string and stores its tendencies into a list.

generate_yaml_str(key, value)

Generate YAML string for a key-value pair, ensuring comments are retained.

Parameters:
key

Key of the yaml string.

value

Corresponding value for the key.

load_yaml(yaml_str)

Parses a YAML string and populates the WaveformConfiguration.

Parameters:
yaml_str

The YAML string to load YAML for.

parse_waveform(yaml_str)

Loads a YAML structure from a string and stores its tendencies into a list.

Parameters:
yaml_str

YAML content as a string.


Last update: 2026-05-21