UnytQuantityHandler#

class pisces.utilities.io_tools.UnytQuantityHandler[source]#

Unyt quantity handler for YAML serialization/deserialization.

Methods

__init__()

from_yaml(loader, node)

Convert a YAML node to a Python object.

register(yaml)

Register this handler's representer and constructor with a YAML instance.

to_yaml(representer, obj)

Convert a Python object to a YAML node.