lapy.io¶
Functions to read and write spectra and vertex functions.
- lapy.io.read_vfunc(filename)[source]¶
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.
- lapy.io.write_vfunc(filename, vfunc)[source]¶
Save vertex in PSOL txt file.
First line “Solution:”, “,” separated values inside ()
- Parameters:
- filename
str
Filename to save to.
- vfuncarray_like
List of vfunc parameters.
- filename