ska_ost_senscalc.low.service
The service layer is responsible for turning validated inputs into the relevant calculation inputs, calling any calculation functions and collating the results.
- class ska_ost_senscalc.low.service.ContinuumSensitivityResponse[source]
Typed dictionary constrained to match the OpenAPI schema for the response body of a single continuum sensitivity calculation.
- class ska_ost_senscalc.low.service.PSSSensitivityResponse[source]
Typed dictionary constrained to match the OpenAPI schema for the response body of a single PSS sensitivity calculation.
- class ska_ost_senscalc.low.service.SingleLineSensitivityResponse[source]
Typed dictionary constrained to match the OpenAPI schema for the response body of a single line sensitivity calculation.
- ska_ost_senscalc.low.service.convert_continuum_input_and_calculate(user_input: dict) ContinuumSensitivityResponse [source]
- Parameters:
user_input – A kwarg dict of the HTTP parameters sent by the user
- Returns:
a SensitivityResponse containing the calculated sensitivity and its units
- ska_ost_senscalc.low.service.convert_line_input_and_calculate(user_input: dict) [<class 'ska_ost_senscalc.low.service.SingleLineSensitivityResponse'>] [source]
- Parameters:
user_input – A kwarg dict of the HTTP parameters sent by the user
- Returns:
a dict containing the calculated sensitivity and its units
- ska_ost_senscalc.low.service.convert_pss_input_and_calculate(user_input: dict) PSSSensitivityResponse [source]
- Parameters:
user_input – A kwarg dict of the HTTP parameters sent by the user
- Returns:
a dict containing the calculated sensitivity and its units