model creation
Created by: awegsche
Model creation overhaul
optics repository structure
change to new
Fetcher
classes / functions that link lattice definition (madx, sequence, strength files ...) to the model directory:
add -
PathFetcher
: user specifiies path, this path is then linked to the model directory -
AfsFetcher
: user specifies opitcs year (2018, 2022, etc) which is then linked to the model directory -
LsaFetcher
: looks up info from LSA
help commands to inform the user about possibilities and workflows
- list command args / usage
python omc3/model_creator.py \
--accel lhc --type nominal --beam1 \
--fetch afs --show_help
possible output:
AfsFetcher: usage
Links optics from afs. Available options:
run / year / tune definition from accelerator class
--optics_file choose the optics
--list opticsfiles shows a list of available opticsfiles for given settings
(run and year have to be set)
--show_help show this help message and exit without creating a model
*** dry-run: no model created ***
- list possible modifers
python omc3/model_creator.py \
--accel lhc --type nominal --beam1 \
--fetch afs --list_modifiers
possible output:
AfsFetcher: list modifiers
opticsfile.1
opticsfile.30
opticsfile.30_ctpps1
*** dry-run: no model created ***