biomol.to_bytes# to_bytes(data, level=6)[source]# Serialize a dictionary containing NumPy arrays to zstd-compressed bytes. Parameters: data (Mapping[str, Any]) – A Mapping containing the NumPy arrays and other data to serialize. level (int, optional) – The compression level for zstd (default is 6). Return type: bytes