AmcsLimits¶
-
class
lsst.ts.MTDome.
AmcsLimits
¶ Bases:
lsst.ts.MTDome.llc_configuration_limits.common_amcs_and_lwscs_limits.CommonAmcsAndLwscsLimits
This class holds the limits of the configuration values for the AMCS lower level component.
Parameters: Methods Summary
validate
(configuration_parameters)Validate the data are against the configuration limits of the lower level component. validate_common_parameters
(…)Validate the data are against the configuration limits of the lower level component. Methods Documentation
-
validate
(configuration_parameters)¶ Validate the data are against the configuration limits of the lower level component.
If necessary it also converts the values expressed in deg/s^n to rad/s^n (with n = 1, 2 or 3).
Parameters: - configuration_parameters: `dict`
The configuration parameters to validate and possibly convert.
Returns: - converted_configuration_parameters: `dict`
The converted configuration parameters.
-
validate_common_parameters
(configuration_parameters, common_limits)¶ Validate the data are against the configuration limits of the lower level component.
If necessary it also converts the values expressed in deg/s^n to rad/s^n (with n = 1, 2 or 3).
Parameters: - configuration_parameters: `dict`
The configuration parameters to validate and possibly convert.
- common_limits: `dict`
The limits shared by AMCS and LWSCS. The names are the same but the values differ.
Returns: - converted_configuration_parameters: `dict`
The converted configuration parameters.
Raises: - ValueError
Raised when the value of a configuration parameter is smaller than zero or larger than the limit for that parameter.
- KeyError
Raised when a configuration parameter is missing or when an unknown configuration parameter is encountered.
-