pyphi.serialize.loads#

pyphi.serialize.loads(data, *, format='json', node_labels=None)[source]#

Deserialize a document produced by dumps().

Parameters:
  • data (bytes) – The serialized document.

  • format ({"json", "msgpack"}, optional) – Wire format. Defaults to "json".

  • node_labels (NodeLabels, optional) – Replacement label frame. If given, it is used in place of the document’s stored frame; objects carrying their own per-object labels keep them.

Raises:

ValueError – If data is not a document produced by dumps() in a format this version reads; the message says what the data appears to be.

Return type:

Any