@@ -22,7 +22,7 @@ class ConfigModel(MeasurementToolConfigModel):
2222 Parameters
2323 ----------
2424 sextu_array_name : str
25- Array name of quad used to adjust the tune
25+ Array name of sextupole used to adjust the chromaticity
2626 chromaticity_name : str
2727 Name of the diagnostic chromaticy monitor
2828 sextu_delta : float
@@ -54,24 +54,44 @@ def measure(
5454 """
5555 Measure tune response matrix
5656
57+ **Example**
58+
59+ .. code-block:: python
60+
61+ from pyaml.accelerator import Accelerator
62+ from pyaml.common.constants import Action
63+
64+ def callback(action: Action, data:dict):
65+ print(f"{action}, data:{data}")
66+ return True
67+
68+ sr = Accelerator.load("tests/config/EBSOrbit.yaml")
69+ acc = sr.design
70+
71+ if acc.crm.measure(callback=callback):
72+ acc.crm.save("ideal_crm.json")
73+ acc.crm.save("ideal_crm.yaml", with_type="yaml")
74+ acc.crm.save("ideal_crm.npz", with_type="npz")
75+
76+
5777 Parameters
5878 ----------
5979 sextu_delta : float
6080 Delta strength used to get the response matrix
6181 n_step: int, optional
62- Number of step for fitting the tune [-quad_delta /n_step..quad_delta /n_step]
82+ Number of step for fitting the chomaticity slope [-sextu_delta /n_step..sextu_delta /n_step]
6383 Default from config
6484 sleep_between_step: float
65- Default time sleep after quad exitation
85+ Default time sleep after sextu exitation
6686 Default: from config
6787 n_avg_meas : int, optional
68- Default number of chroma measurement per step used for averaging
88+ Default number of chromaticity measurement per step used for averaging
6989 Default from config
7090 sleep_between_meas: float
71- Default time sleep between two tune measurment
91+ Default time sleep between two chomaticity measurment
7292 Default: from config
7393 callback : Callable, optional
74- Callback executed after each strength setting.
94+ Callback executed after each strength setting or measurement .
7595 See :py:meth:`~.measurement_tool.MeasurementTool.send_callback`.
7696 If the callback return false, then the scan is aborted and strength restored.
7797 callback_data dict contains:
0 commit comments