Skip to content

Commit 47365ea

Browse files
committed
restore main files not related to doc
1 parent 6bcb547 commit 47365ea

File tree

2 files changed

+8
-19
lines changed

2 files changed

+8
-19
lines changed

pyaml/pyaml.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ class ConfigModel(BaseModel):
2222
"""Instrument name"""
2323

2424
class 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

4838
def 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

tests/config/EBSTune.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)