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.SensitivityResponse[source]
SensitivityResponse is a typed dictionary constrained to match the schema of a single sensitivity calculation.
- ska_ost_senscalc.low.service.convert_continuum_input_and_calculate(user_input: dict) SensitivityResponse [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_pss_input_and_calculate(user_input: dict) SensitivityResponse [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_zoom_input_and_calculate(user_input: dict) SensitivityResponse [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