Lattices and configuration files for pyAML tests and tutorials
Actively maintained. Last release 2 days ago, commits in 8 of the last 26 weeks. A safe choice.
pip install pyaml-test-latticeREADME as published on PyPI with version 0.5.0.
pyaml-test-lattice
Lattices and configuration files used for pyAML integration tests and tutorials.
Usage
The package discovers files automatically from its packaged data/lattice and
data/configuration directories. Access them through separate registries:
from pyaml_test_lattice import configurations, lattices
lattice_file = lattices["fodo_1gev_6d.json"]
config_file = configurations["pyaml/tango/fodo_1gev_6d_pyaml.yaml"]
Registry entries are filesystem paths, so they can be passed directly to lattice and configuration loaders:
simulator = Simulator(name="design", lattice=lattice_file)
accelerator = Accelerator.load(config_file)
New files placed below either data directory are available automatically using their path relative to that directory.
Optional descriptions can be added without changing the registry. Place a
file named <filename>.description next to any lattice or
configuration file. Its text is displayed when printing the registry:
fodo_1gev_6d.json.description
To list the available files and their description, print a registry:
print(configurations)
Named arrays and tuning tools
The fodo_1gev_6d pyAML configurations (pyaml/tango/tango-pyaml/fodo_1gev_6d_pyaml.yaml
and pyaml/tango/pyaml-cs-oa/fodo_1gev_6d_pyaml-oa.yaml) declare the arrays and tools
used by the pyAML examples/use_cases notebooks, under the same canonical names:
| Name | Description |
|---|---|
QForTune | Quadrupoles used for tune correction (all QF_* and QD_*) |
HCorr / VCorr | Horizontal / vertical orbit correctors (COR_*.hcorrector, COR_*.vcorrector) |
BPM | Beam position monitors (BPM_*) |
BETATRON_TUNE |