pisces.utilities.io_tools.HDF5Serializer.serialize_unyt#
- static HDF5Serializer.serialize_unyt(o: unyt_array | unyt_quantity) dict[source]#
Serialize a unyt object into a dictionary.
- Parameters:
o (
unyt.array.unyt_arrayorunyt.array.unyt_quantity) – The unyt object to serialize.- Returns:
A dictionary representation of the unyt object.
- Return type: