pyphi.serialize.load#
- pyphi.serialize.load(target, *, format=None)[source]#
Deserialize a PyPhi domain object from
target.- Parameters:
target (str or os.PathLike or file object) – Source path, or an open binary file object to read from.
format ({"json", "msgpack"}, optional) – Wire format. If None (the default), it is inferred from a path’s extension exactly as in
save().
- Returns:
Any – The reconstructed PyPhi domain object.
- Return type:
Notes
A path ending in
.gzis transparently decompressed.