Skip to content

Commit 9fa0272

Browse files
committed
readme for esrf examples
1 parent 2630b4d commit 9fa0272

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

examples/ESRF_tune_example/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,14 @@
1515
1. navigate to the pyaml root directory
1616
1. Download (or clone) the example files.
1717

18+
## expected output is
19+
20+
30 Jan 2026, 09:23:13 | WARNING | PyAML Tango control system binding (0.3.2) initialized with name 'live' and TANGO_HOST=ebs-simu-3:10000
21+
Tune response: #0 QD2E-C04 [ 0.17851726 -1.25993589]
22+
Tune response: #1 QD2A-C05 [ 0.17889514 -1.25969115]
23+
...
24+
Tune response: #123 QF1A-C03 [ 0.59069308 -0.49430245]
25+
Initial tune: [0.16000001 0.33999986]
26+
Final tune: [0.17 0.32]
27+
28+

examples/ESRF_tune_example/esrf_tune_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ def tune_callback(step: int, action: int, m: Magnet, dtune: np.array):
2424

2525

2626
# Compute tune response matrix
27-
tune_adjust_design = sr.design.get_tune_tuning("TUNE")
27+
tune_adjust_design = sr.design.tune
2828
tune_adjust_design.response.measure(callback=tune_callback)
2929
tune_adjust_design.response.save_json("tunemat.json")
3030

3131
# Correct tune on live or design
32-
tune_adjust = SR.get_tune_tuning("TUNE")
32+
tune_adjust = SR.tune
3333
tune_adjust.response.load_json("tunemat.json")
34-
print(tune_adjust.readback())
34+
print(f'Initial tune: {tune_adjust.readback()}')
3535
tune_adjust.set([0.17, 0.32], iter=2, wait_time=10)
36-
print(tune_adjust.readback())
36+
print(f'Final tune: {tune_adjust.readback()}')

0 commit comments

Comments
 (0)