pyphi.provenance.save_npz#

pyphi.provenance.save_npz(arrays, directory, name, *, params=None, run_label=None, seed=None, note=None)[source]#

Write arrays to a self-describing, non-clobbering .npz file.

The arrays are stored with numpy.savez_compressed(), plus two reserved entries _provenance and _params holding JSON strings (read back with read_metadata()). Array names beginning with _ raise ValueError. Filename, versioning, and seed resolution follow save_json().

Returns the written path.

Parameters:
Return type:

Path