pyIntensityFeatures.tests.test_utils_checks

Tests for functions in utils.checks.

Classes

TestPearsonFuncs

Tests for Pearson correlation value check functions.

TestEvalGaussQuadFuncs

Tests for the evaluate_gauss_quad check function.

TestEvalDayglow

Tests for evaluate_dayglow.

TestCompareBoundaries

Tests for compare_boundaries.

TestEvalBoundariesMLT

Tests for evaluate_boundaries_in_mlt.

Module Contents

class pyIntensityFeatures.tests.test_utils_checks.TestPearsonFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for Pearson correlation value check functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_evaluate_pearson_finite_success()[source]

Test success for finite, numeric input values.

test_evaluate_pearson_finite_failure()[source]

Test failure for finite, numeric input values.

test_evaluate_pearson_nonetype()[source]

Test failure and logger message for NoneType inputs.

test_evaluate_pearson_bad_float()[source]

Test failure and logger message for infinite and NaN inputs.

test_compare_pearson_best_rval()[source]

Test successful identification of the best Pearson values.

test_compare_pearson_valid_pmax()[source]

Test successful identification of the best Pearson values.

test_compare_pearson_best_finite()[source]

Test successful ID of the best Pearson values with bad inputs.

test_compare_pearson_invalid()[source]

Test rejection of comparison for all bad Pearson values.

class pyIntensityFeatures.tests.test_utils_checks.TestEvalGaussQuadFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for the evaluate_gauss_quad check function.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_npeak_success()[source]

Test success with different npeak values.

test_finite_coeff_failure()[source]

Test failure with non-finite coefficient values.

test_finite_coeff_neg_amp_or_spread()[source]

Test failure with negative amplitude or spread values.

test_finite_coeff_bad_hemisphere()[source]

Test failure with x-offset in the wrong hemisphere.

test_finite_coeff_bad_location()[source]

Test failure with x-offset outside the slice latitude range.

test_finite_coeff_low_amplitude()[source]

Test failure with an amplitude too close to the background.

test_finite_coeff_wide_spread()[source]

Test failure with peak spread larger than the data range.

test_finite_coeff_narrow_width()[source]

Test failure with a narrow peak width.

test_bad_polar_uncertainty()[source]

Test failure with an unrealistic polar boundary uncertainty.

test_bad_equator_uncertainty()[source]

Test failure with an unrealistic equatorward boundary uncertainty.

test_bad_boundary_locations()[source]

Test failure with an unrealistic boundary locations.

test_nonfinite_pearson_values()[source]

Test failure with non-finite Pearson correlation coefficients.

test_nonetype_pearson_values()[source]

Test failure with NoneType Pearson correlation coefficients.

test_bad_pearson_values()[source]

Test failure with a bad Pearson correlation coefficient.

class pyIntensityFeatures.tests.test_utils_checks.TestEvalDayglow(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for evaluate_dayglow.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_low_dayglow()[source]

Test success with a low quadratic background.

test_high_dayglow()[source]

Test success with a high quadratic background.

test_bad_location_for_dayglow()[source]

Test success with a non-finite location value.

class pyIntensityFeatures.tests.test_utils_checks.TestCompareBoundaries(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for compare_boundaries.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_compare_good_bounds()[source]

Compare boundaries that are good and pick the best.

test_compare_equatorward_high_uncertainty()[source]

Compare boundaries where the best R value has high EALB error.

test_compare_equatorward_bad_values()[source]

Compare boundaries where the best R value has a bad EALB location.

test_compare_equatorward_all_bad_values()[source]

Compare boundaries where the best R value has bad EALB locations.

test_compare_polar_high_uncertainty()[source]

Compare boundaries where the best R value has high PALB error.

test_compare_polar_bad_values()[source]

Compare boundaries where the best R value has a bad PALB location.

test_compare_polar_all_bad_values()[source]

Compare boundaries where the best R value has bad PALB locations.

class pyIntensityFeatures.tests.test_utils_checks.TestEvalBoundariesMLT(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for evaluate_boundaries_in_mlt.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_bad_boundary_keys()[source]

Test raises ValueError with bad boundary keys.

test_bad_coord_keys()[source]

Test raises ValueError with bad coordinate keys.

test_bad_mlt_frequency()[source]

Test raises ValueError with bad MLT coordinates.

test_eval_success_no_removal()[source]

Test evaluation removes no outlier boundaries.

test_eval_success_with_removal()[source]

Test evaluation removes no outlier boundaries.