tests.sensitivity_calculator
Unit tests for the sensitivity_calculator.frontend_adapter module
- tests.sensitivity_calculator.test_end_to_end.test_default_continuum_int_time()[source]
This is an end to end testing of the SC ContinuumIntTime component. A range of possible inputs are tried and the results compared with expected.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_end_to_end.test_default_continuum_sensitivity()[source]
This is an end to end testing of the SC ContinuumSensitivity component. A range of possible inputs are tried and the results compared with expected.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_end_to_end.test_default_line_int_time()[source]
This is an end to end testing of the SC LineIntTime component. A range of possible inputs are tried and the results compared with expected.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_end_to_end.test_default_line_sensitivity()[source]
This is an end to end testing of the SC LineSensitivity component. A range of possible inputs are tried and the results compared with expected.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
Unit tests for the sensitivity_calculator.frontend_adapter module
- tests.sensitivity_calculator.test_frontend_adapter.test_construct_frontend_result()[source]
This tests the translate_frontend_result method for one set of inputs.
- tests.sensitivity_calculator.test_frontend_adapter.test_default_continuum_int_time()[source]
This is an end to end testing of the SC ContinuumIntTime component. A range of possible inputs are tried and the results compared with those calculated directly.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_frontend_adapter.test_default_continuum_sensitivity()[source]
This is an end to end testing of the SC ContinuumSensitivity component. A range of possible inputs are tried and the results compared with those calculated directly.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_frontend_adapter.test_default_line_int_time()[source]
This is an end to end testing of the SC LineIntTime component. A range of possible inputs are tried and the results compared with those calculated directly.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_frontend_adapter.test_default_line_sensitivity()[source]
This is an end to end testing of the SC LineSensitivity component. A range of possible inputs are tried and the results compared with those calculated directly.
‘Expert’ values are not set, so the SC will calculate the standard defaults where necessary.
- tests.sensitivity_calculator.test_frontend_adapter.test_get_chunks()[source]
This tests the get_chunks method for one set of inputs.
- tests.sensitivity_calculator.test_frontend_adapter.test_translate_backend_state()[source]
This tests the translate_backend_state method for one set of inputs.
Unit tests for the sensitivity_calculator.mid module.
- tests.sensitivity_calculator.test_mid.test_SEFD_antenna()[source]
Verify performance of SEFD_antenna.
- tests.sensitivity_calculator.test_mid.test_SEFD_array()[source]
Verify performance of SEFD_antenna.
- tests.sensitivity_calculator.test_mid.test_calculate_integration_time()[source]
Verify the integration time of a proposed observation for a given sensitivity
- tests.sensitivity_calculator.test_mid.test_calculate_sensitivity()[source]
Verify the sensitivity of a proposed observation for a given integration
- tests.sensitivity_calculator.test_mid.test_never_up()[source]
Verify behaviour of mid.MidCalculator with target always below horizon
- tests.sensitivity_calculator.test_mid.test_state()[source]
Verify the method that passes the calculated values back to the front end
Unit tests for the sensitivity_calculator.mid_utilities module.
- tests.sensitivity_calculator.test_mid_utilities.test_Tsys_dish()[source]
Validate mid_utilities.Tsys_dish
- tests.sensitivity_calculator.test_mid_utilities.test_eta_bandpass()[source]
Verify mid_utilities.eta_bandpass
- tests.sensitivity_calculator.test_mid_utilities.test_eta_coherence()[source]
Verify mid_utilities.eta_coherence
- tests.sensitivity_calculator.test_mid_utilities.test_eta_correlation()[source]
Verify mid_utilities.eta_correlation
- tests.sensitivity_calculator.test_mid_utilities.test_eta_digitisation()[source]
Verify mid_utilities.BaseCalculator.eta_digitise
- tests.sensitivity_calculator.test_mid_utilities.test_eta_dish()[source]
Validate mid_utilities.eta_dish
- tests.sensitivity_calculator.test_mid_utilities.test_eta_point()[source]
Verify mid_utilities.BaseCalculator.eta_point
- tests.sensitivity_calculator.test_mid_utilities.test_eta_rfi()[source]
Validate mid_utilities.eta_rfi
- tests.sensitivity_calculator.test_mid_utilities.test_eta_system()[source]
Validate mid_utilities.eta_system
Unit tests for the sensitivity_calculator.routes module At the moment, test the subarrays REST interface.
- tests.sensitivity_calculator.test_routes.client()
As explained in the Flask documentation: https://flask.palletsprojects.com/en/1.1.x/testing/
- tests.sensitivity_calculator.test_routes.test_subarrays_list(client)[source]
Test the subarrays entry point.
Unit tests for the sensitivity_calculator.subarray module.
- tests.sensitivity_calculator.test_subarray.test_local_storage_listing()[source]
Verify storage lists subarray files properly
- tests.sensitivity_calculator.test_subarray.test_local_storage_load_data()[source]
Verify that the storage instance load subarray files and transforms them to Subarray objects properly
- tests.sensitivity_calculator.test_subarray.test_local_storage_load_non_existing_data()[source]
Verify that an exception is raised when the storage file is not found
- tests.sensitivity_calculator.test_subarray.test_subarray_class_properties()[source]
Check that the two convenience properties return the correct number of antennas
- tests.sensitivity_calculator.test_subarray.test_subarray_marshmallow_deserialization()[source]
Test that the marshmallow schema works: deserialization
- tests.sensitivity_calculator.test_subarray.test_subarray_marshmallow_serialization()[source]
Test that the marshmallow schema works: serialization
Unit tests for the sensitivity_calculator.utilities module.
- tests.sensitivity_calculator.test_utilities.test_Tx()[source]
Verify that the correction applied to temperature is calculated correctly
- tests.sensitivity_calculator.test_utilities.test_calculate_Trcv()[source]
Verify TelParams.calculate_Trcv
- tests.sensitivity_calculator.test_utilities.test_calculate_Tspl()[source]
Verify TelParams.calculateTspl
- tests.sensitivity_calculator.test_utilities.test_dish_efficiency()[source]
Verify TelParams.calculate_dish_efficiency