New tuning and measurement tools architecture#218
Conversation
|
@kparasch Please:
Thanks |
I am making a PR to this branch for the orm saving for orbit.
I didn't understand which workflow you meant here. |
i.e.: class ConfigModel(ElementConfigModel):
"""
Configuration model for Tune response matrix
Parameters
----------
quad_array_name : str
Array name of quad used to adjust the tune
betatron_tune_name : str
Name of the diagnostic pyaml device for measuring the tune
quad_delta : float
Delta strength used to get the response matrix
n_step: int, optional
Number of step for fitting the tune [-quad_delta/n_step..quad_delta/n_step]
Default 1
sleep_between_step: float
Default time sleep after quad exitation
Default: 0
n_tune_meas : int, optional
Default number of tune measurement per step used for averaging
Default 1
sleep_between_meas: float
Default time sleep between two tune measurment
Default: 0
"""
quad_array_name: str
betatron_tune_name: str
quad_delta: float
n_step: Optional[int] = 1
sleep_between_step: Optional[float] = 0
n_tune_meas: Optional[int] = 1
sleep_between_meas: Optional[float] = 0 def measure(
self,
quad_delta: Optional[float] = None,
n_step: Optional[int] = None,
sleep_between_step: Optional[float] = None,
n_tune_meas: Optional[int] = None,
sleep_between_meas: Optional[float] = None,
callback: Optional[Callable] = None,
):
"""
Measure tune response matrix
Parameters
----------
quad_delta : float
Delta strength used to get the response matrix
n_step: int, optional
Number of step for fitting the tune [-quad_delta/n_step..quad_delta/n_step]
Default from config
...
""" |
# all metadata is discarded here. Should we keep something?I would say if we want to add additional metadata, we should update |
…ng convention for RM)
9d65643 to
26241c0
Compare
The aim of this PR is to provide a unified way of accessing response matrix data.