torchsig.utils.yaml.custom_representer¶
- torchsig.utils.yaml.custom_representer(dumper, value)[source]¶
Custom representer for YAML to handle sequences (lists).
This function customizes how lists are represented in the YAML output, using flow style for sequences (inline lists).
- Parameters:
dumper (yaml.Dumper) – The YAML dumper responsible for serializing the data.
value (list) – The list to be represented in YAML.
- Returns:
The dumper with the custom representation for the list.
- Return type:
yaml.Dumper