Scan default chain configuration
(related merge request: !666 (closed))
Task
To be able to set default parameters for devices in a default scan, and to be able to specify which master to use for a device in order to produce an optimized acquisition chain corresponding to the beamline configuration.
To do
-
new global function in common/scans.py
, to set the global, default scan chain configuration -
configuration is a list of dicts with the following structure:
-
device: $frelon
parameters:
acq_trigger_type: EXTERNAL
...
master: $p201
-
...
Warning: the keys device
and master
are directly objects from the
configuration, not names
-
the configuration dict can come from a yaml file from the beamline configuration -
create_acquisition_device
need to receive**parameters
keyword arguments, and those arguments need to be passed to the corresponding acquisition device -
all default scans should take scan_config
(?) parameter, to set a particular scan config for a scan; ifscan_config
isNone
, the global scan config is used
Edited by Matias Guijarro