ska_ost_senscalc.mid.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.mid.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.mid.service.SingleLineSensitivityResponse[source]
Typed dictionary constrained to match the OpenAPI schema for the response body of a single line sensitivity calculation.
- ska_ost_senscalc.mid.service.get_continuum_calculate_response(params: dict) ContinuumSensitivityResponse [source]
Extract the params from the request, convert them into the relevant calculator inputs, perform the calculations and collect the results into the response body.
- ska_ost_senscalc.mid.service.get_line_calculate_response(params) list[SingleLineSensitivityResponse] [source]
Extract the params from the request, convert them into the relevant calculator inputs, perform the calculations and collect the results into the response body.