pyIntensityFeatures.tests.test_utils_checks =========================================== .. py:module:: pyIntensityFeatures.tests.test_utils_checks .. autoapi-nested-parse:: Tests for functions in `utils.checks`. .. !! processed by numpydoc !! Classes ------- .. autoapisummary:: pyIntensityFeatures.tests.test_utils_checks.TestPearsonFuncs pyIntensityFeatures.tests.test_utils_checks.TestEvalGaussQuadFuncs pyIntensityFeatures.tests.test_utils_checks.TestEvalDayglow pyIntensityFeatures.tests.test_utils_checks.TestCompareBoundaries pyIntensityFeatures.tests.test_utils_checks.TestEvalBoundariesMLT Module Contents --------------- .. py:class:: TestPearsonFuncs(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Tests for Pearson correlation value check functions. .. !! processed by numpydoc !! .. py:method:: setUp() Set up the test runs. .. !! processed by numpydoc !! .. py:method:: tearDown() Tear down the test environment. .. !! processed by numpydoc !! .. py:method:: test_evaluate_pearson_finite_success() Test success for finite, numeric input values. .. !! processed by numpydoc !! .. py:method:: test_evaluate_pearson_finite_failure() Test failure for finite, numeric input values. .. !! processed by numpydoc !! .. py:method:: test_evaluate_pearson_nonetype() Test failure and logger message for NoneType inputs. .. !! processed by numpydoc !! .. py:method:: test_evaluate_pearson_bad_float() Test failure and logger message for infinite and NaN inputs. .. !! processed by numpydoc !! .. py:method:: test_compare_pearson_best_rval() Test successful identification of the best Pearson values. .. !! processed by numpydoc !! .. py:method:: test_compare_pearson_valid_pmax() Test successful identification of the best Pearson values. .. !! processed by numpydoc !! .. py:method:: test_compare_pearson_best_finite() Test successful ID of the best Pearson values with bad inputs. .. !! processed by numpydoc !! .. py:method:: test_compare_pearson_invalid() Test rejection of comparison for all bad Pearson values. .. !! processed by numpydoc !! .. py:class:: TestEvalGaussQuadFuncs(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Tests for the `evaluate_gauss_quad` check function. .. !! processed by numpydoc !! .. py:method:: setUp() Set up the test runs. .. !! processed by numpydoc !! .. py:method:: tearDown() Tear down the test environment. .. !! processed by numpydoc !! .. py:method:: test_npeak_success() Test success with different npeak values. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_failure() Test failure with non-finite coefficient values. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_neg_amp_or_spread() Test failure with negative amplitude or spread values. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_bad_hemisphere() Test failure with x-offset in the wrong hemisphere. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_bad_location() Test failure with x-offset outside the slice latitude range. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_low_amplitude() Test failure with an amplitude too close to the background. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_wide_spread() Test failure with peak spread larger than the data range. .. !! processed by numpydoc !! .. py:method:: test_finite_coeff_narrow_width() Test failure with a narrow peak width. .. !! processed by numpydoc !! .. py:method:: test_bad_polar_uncertainty() Test failure with an unrealistic polar boundary uncertainty. .. !! processed by numpydoc !! .. py:method:: test_bad_equator_uncertainty() Test failure with an unrealistic equatorward boundary uncertainty. .. !! processed by numpydoc !! .. py:method:: test_bad_boundary_locations() Test failure with an unrealistic boundary locations. .. !! processed by numpydoc !! .. py:method:: test_nonfinite_pearson_values() Test failure with non-finite Pearson correlation coefficients. .. !! processed by numpydoc !! .. py:method:: test_nonetype_pearson_values() Test failure with NoneType Pearson correlation coefficients. .. !! processed by numpydoc !! .. py:method:: test_bad_pearson_values() Test failure with a bad Pearson correlation coefficient. .. !! processed by numpydoc !! .. py:class:: TestEvalDayglow(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Tests for `evaluate_dayglow`. .. !! processed by numpydoc !! .. py:method:: setUp() Set up the test runs. .. !! processed by numpydoc !! .. py:method:: tearDown() Tear down the test environment. .. !! processed by numpydoc !! .. py:method:: test_low_dayglow() Test success with a low quadratic background. .. !! processed by numpydoc !! .. py:method:: test_high_dayglow() Test success with a high quadratic background. .. !! processed by numpydoc !! .. py:method:: test_bad_location_for_dayglow() Test success with a non-finite location value. .. !! processed by numpydoc !! .. py:class:: TestCompareBoundaries(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Tests for `compare_boundaries`. .. !! processed by numpydoc !! .. py:method:: setUp() Set up the test runs. .. !! processed by numpydoc !! .. py:method:: tearDown() Tear down the test environment. .. !! processed by numpydoc !! .. py:method:: test_compare_good_bounds() Compare boundaries that are good and pick the best. .. !! processed by numpydoc !! .. py:method:: test_compare_equatorward_high_uncertainty() Compare boundaries where the best R value has high EALB error. .. !! processed by numpydoc !! .. py:method:: test_compare_equatorward_bad_values() Compare boundaries where the best R value has a bad EALB location. .. !! processed by numpydoc !! .. py:method:: test_compare_equatorward_all_bad_values() Compare boundaries where the best R value has bad EALB locations. .. !! processed by numpydoc !! .. py:method:: test_compare_polar_high_uncertainty() Compare boundaries where the best R value has high PALB error. .. !! processed by numpydoc !! .. py:method:: test_compare_polar_bad_values() Compare boundaries where the best R value has a bad PALB location. .. !! processed by numpydoc !! .. py:method:: test_compare_polar_all_bad_values() Compare boundaries where the best R value has bad PALB locations. .. !! processed by numpydoc !! .. py:class:: TestEvalBoundariesMLT(methodName='runTest') Bases: :py:obj:`unittest.TestCase` Tests for `evaluate_boundaries_in_mlt`. .. !! processed by numpydoc !! .. py:method:: setUp() Set up the test runs. .. !! processed by numpydoc !! .. py:method:: tearDown() Tear down the test environment. .. !! processed by numpydoc !! .. py:method:: test_bad_boundary_keys() Test raises ValueError with bad boundary keys. .. !! processed by numpydoc !! .. py:method:: test_bad_coord_keys() Test raises ValueError with bad coordinate keys. .. !! processed by numpydoc !! .. py:method:: test_bad_mlt_frequency() Test raises ValueError with bad MLT coordinates. .. !! processed by numpydoc !! .. py:method:: test_eval_success_no_removal() Test evaluation removes no outlier boundaries. .. !! processed by numpydoc !! .. py:method:: test_eval_success_with_removal() Test evaluation removes no outlier boundaries. .. !! processed by numpydoc !!