pyphi.provenance.read_metadata#
- pyphi.provenance.read_metadata(path)[source]#
Read the provenance and params embedded in a writer’s output file.
Dispatches on the file suffix (
.json,.npz, or.parquet) and returns{"provenance": dict, "params": dict}. A file without the expected metadata (not produced bysave_json(),save_npz(), orsave_dataframe()) raisesValueError, as does an unrecognized suffix.