LwscsLimits

class lsst.ts.MTDome.LwscsLimits

Bases: lsst.ts.MTDome.llc_configuration_limits.common_amcs_and_lwscs_limits.CommonAmcsAndLwscsLimits

This class holds the limits of the configuration values for the LWSCS lower level component.

Parameters:
Hardcoded parameters:
jmax : float (optional)

Maximum jerk, in deg/s^3

amax : float (optional)

Maximum acceleration, in deg/s^2

vmax : float (optional)

Maximum velocity, in deg/s

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.