File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed
Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,7 @@ class ConfigModel(BaseModel):
2222 """Instrument name"""
2323
2424class PyAML (object ):
25- """
26- PyAML top level class
27-
28- Allows to
29- read and set magents and RF
30- read diagnostics
31- run tuning tools
32- For any control system
33- In a simulator or in the real machine
34-
35- """
25+ """PyAML top level class"""
3626
3727 def __init__ (self , cfg : ConfigModel ):
3828 self ._cfg = cfg
@@ -46,14 +36,7 @@ def get(self,name:str) -> Instrument:
4636 return self .INSTRUMENTS [name ]
4737
4838def pyaml (filename :str ) -> PyAML :
49- r"""
50- Load an accelerator middle layer
51-
52- Parameters:
53- filename: configuration file.
54- Returns:
55- accelerator middle layer object.
56- """
39+ """Load an accelerator middle layer"""
5740 logger .log (logging .INFO , f"Loading PyAML from file '{ filename } '" )
5841
5942 # Asume that all files are referenced from folder where main AML file is stored
Original file line number Diff line number Diff line change @@ -7,10 +7,16 @@ instruments:
77 - type : pyaml.lattice.simulator
88 lattice : sr/lattices/ebs.mat
99 name : design
10+ controls :
11+ - type : tango.pyaml.controlsystem
12+ tango_host : ebs-simu-3:10000
13+ name : live
1014 data_folder : /data/store
1115 arrays :
1216 - type : pyaml.arrays.magnet
1317 name : QForTune
18+ aggregator :
19+ type : tango.pyaml.multi_attribute
1420 elements :
1521 - QD2E-C04
1622 - QD2A-C05
You can’t perform that action at this time.
0 commit comments