test_albedo¶
- test_albedo.test_albedo_invalid_file(tmp_path)[source]¶
- Verify that Albedo model returns gracefully when file cannot be loaded. - Regression test for BSK-428 where model would segfault when invalid file was specified. - Note - The model is not in a usable state if this initialization fails. Ideally an exception would be thrown, but the SWIG infrastructure doesn’t appear to be setup to handle C++ exceptions, so we settle for printing a message and not segfaulting. 
- test_albedo.test_unitAlbedo(show_plots, planetCase, modelType, useEclipse)[source]¶
- Validation Test Description - This section describes the specific unit tests conducted on this module. The test contains 4 tests and is located at - test_albedo.py. The success criteria is to match the outputs with the generated truth.- Parameters
- planetCase (string) – Defines which planet to use. Options include “earth” and “mars”. 
- modelType (string) – Defines which albedo model to use. Options include “ALBEDO_AVG_EXPLICIT”, “ALBEDO_AVG_IMPLICIT” and “ALBEDO_DATA”. 
- useEclipse (bool) – Defines if the eclipse is considered for this parameterized unit test. 
 
 - Description of Variables Being Tested - In this file, we are checking the values of the variable: - albedoAtInstrument- which are pulled from the log data to see if they match with the expected truth values.