at.load.reprfile#
Text representation of a python AT lattice with each element represented by
its repr() string.
Functions
|
Create a |
|
Save a |
- load_repr(filename, **kwargs)[source]#
Create a
Latticefrom a text repr-file.- Parameters:
- Keyword Arguments:
- Returns:
lattice (Lattice) – New
Latticeobject
See also
load_lattice()for a generic lattice-loading function.
- save_repr(ring, filename=None)[source]#
Save a
Latticeas a repr-file.- Parameters:
ring (Lattice) – Lattice description
filename (str | Path | None) – Name of the ‘.repr’ file. Default: outputs on
sys.stdout
See also
save_lattice()for a generic lattice-saving function.