Validator for Acquisition Objects
As the definition of default values for Acquisition Objects can be rather complex due to dependencies between different parameters a validator can help to define and insert default values.
Acquisition objects parameters handling
- will use the validator proposed by Linus (based on cerberus)
- signature of the
AcquisitionObject
has to be:AcquisitionObject(*devices, ctrl_params=None, **acquisition_params)
- there will be a method to define what is validated, that would need to be overwritten by derived classes
- only
prepare_once
andstart_once
are validated in derived classes from the base class parameters (excludingtrigger_type
,npoints
,name
) - the call of the validator has to be done prior to the
super().__init__
call (not present in base class)
Edited by Matias Guijarro