torchsig.utils.yaml.custom_representer

torchsig.utils.yaml.custom_representer(dumper, value: list) Dumper[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 – The YAML dumper responsible for serializing the data.

  • value – The list to be represented in YAML.

Returns:

The dumper with the custom representation for the list.