at.load.tracy#
Load a lattice from a Tracy file (.lat).
This is not complete but can parse the example files that I have. This parser is quite similar to the Elegant parser in elegant.py.
Functions
|
Create a |
- load_tracy(filename, **kwargs)[source]#
Create a
Lattice
from a Tracy file- Parameters:
filename (str) – Name of a Tracy file
- Keyword Arguments:
use (str) – Name of the variable containing the desired lattice. Default:
cell
name (str) – Name of the lattice. Default: taken from the file.
energy (float) – Energy of the lattice [eV]
periodicity (int) – Number of periods. Default: taken from the elements, or 1
* – All other keywords will be set as Lattice attributes
- Returns:
lattice (Lattice) – New
Lattice
object
See also
load_lattice()
for a generic lattice-loading function.