pisces.utilities.io_tools.UnytQuantityHandler.to_yaml#
- static UnytQuantityHandler.to_yaml(representer, obj)[source]#
Convert a Python object to a YAML node.
- Parameters:
representer (
ruamel.yaml.representer.Representer
) – The YAML representer to use for creating the node.obj (
Any
) – The Python object to serialize.
- Returns:
A YAML node representing the serialized object.
- Return type:
ruamel.yaml.nodes.Node