lapy.io

Functions to read and write spectra and vertex functions.

lapy.io.read_ev(filename)

Load EV file.

Parameters:
filenamestr

Filename of input.

Returns:
d: dict

Dictionary of eigenvalues, eigenvectors (optional), and associated information.

lapy.io.read_vfunc(filename)

Import vertex functions from txt file.

Values can be separated by ; or , and surrounded by {} or () brackets. Also first line can have the keyword “Solution:”, i.e. the PSOL format from ShapeDNA.

Parameters:
filenamestr

Filename of input.

Returns:
valsarray

List of vfunc parameters.

lapy.io.write_ev(filename, d)

Save EV data structures as txt file (format from ShapeDNA).

Parameters:
filenamestr

Filename to save to.

ddict

Dictionary of eigenvalues, eigenvectors (optional), and associated information.

lapy.io.write_vfunc(filename, vfunc)

Save vertex in PSOL txt file.

First line “Solution:”, “,” separated values inside ()

Parameters:
filenamestr

Filename to save to.

vfuncarray_like

List of vfunc parameters.