pyIntensityFeatures.tests.test_proc_boundaries

Tests for functions in proc.boundaries.

Classes

TestBoundariesFuncs

Tests for the boundary ID functions.

Module Contents

class pyIntensityFeatures.tests.test_proc_boundaries.TestBoundariesFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for the boundary ID functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

get_coeffs_by_peak_and_hemisphere(npeaks, hemisphere)[source]

Obtain temporary copies of the fit coefficients and covariance.

Parameters:
npeaksint

Number of peaks to be in the covariance matrix (max of 3)

hemisphereint

-1 for Southern, 1 for Northern

Returns:
coefflist

List of adjusted coefficients

covararray

Covariance matrix adjusted to the correct size.

eval_boundaries(npeaks, hemisphere)[source]

Evaluate the output boundaries.

Parameters:
npeaksint

Number of peaks to be in the covariance matrix (max of 3)

hemisphereint

-1 for Southern, 1 for Northern

test_get_eval_boundares_single()[source]

Test outcome specifying a single fit.

test_get_eval_boundares_mult()[source]

Test outcome specifying a multi-peaked fit.

test_get_eval_boundares_best()[source]

Test outcome specifying the best fitting method.

test_get_eval_boundares_bad_correlation()[source]

Test outcome with a bad covariance.

test_get_eval_boundares_bad_background()[source]

Test outcome with a bad background.

test_get_eval_boundares_bad_background_threshold()[source]

Test a bad background outcome by changing the dayglow threshold.

test_get_eval_boundares_strict_fit()[source]

Test outcome with a negative sigma.

test_locate_mult_peak_boundaries()[source]

Test boundary ID for a multi-peaked fit.

test_locate_mult_peak_boundaries_all_bad()[source]

Test boundary ID for a multi-peaked fit.

test_locate_mult_peak_boundaries_max_spread()[source]

Test boundary ID rejection for separated peaks.

test_locate_mult_peak_boundaries_strict_fit()[source]

Test multiple boundary ID with a negative sigma.

test_locate_single_peak_boundaries()[source]

Test boundary ID for a single-peaked fit.

test_locate_single_peak_boundaries_outside_fit_region()[source]

Test boundary ID for a single-peaked fit that fail region test.

test_locate_single_peak_boundaries_strict_fit()[source]

Test single-peak boundary ID with a negative sigma.

test_calc_boundary_uncertainty()[source]

Test the outcome of the uncertainty calculation.

test_locate_boundares_single()[source]

Test general boundary ID specifying a single fit.

test_locate_boundaries_using_mult_peak()[source]

Test general boundary ID specifying a multi-peaked fit.

test_locate_boundaries_mult_peak_outside_fit_region()[source]

Test general multi-peaked boundary ID with bounds outside region.

test_locate_boundaries_with_best()[source]

Test general boundary ID specifying the best fitting method.

test_locate_boundaries_max_spread()[source]

Test general boundary ID rejection for separated peaks.

test_locate_boundares_strict_fit()[source]

Test general boundary ID outcome with a negative sigma.

test_locate_boundares_bad_method()[source]

Test general boundary ID raises ValueError with a bad method.