diplomat.utils.frame_store_api.to_bytes

diplomat.utils.frame_store_api.to_bytes(obj: Any, dtype: dtype) bytes[source]

Converts an object to bytes.

Parameters
  • obj – The object to convert to bytes.

  • dtype – The numpy data type to interpret the object as when converting to bytes.

Returns

A bytes object, representing the object obj as type dtype.