pyIntensityFeatures.tests.test_utils_distributions

Tests for functions in utils.distributions.

Classes

TestCalcQuadratic

Tests for calc_quadratic.

TestSingleGauss

Tests for the single-peaked Gaussian functions.

TestMultGauss

Tests for the multi-peaked Gaussian functions.

Module Contents

class pyIntensityFeatures.tests.test_utils_distributions.TestCalcQuadratic(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for calc_quadratic.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_float_calc()[source]

Test success for a float calculation.

test_array_calc()[source]

Test success for an array calculation.

class pyIntensityFeatures.tests.test_utils_distributions.TestSingleGauss(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for the single-peaked Gaussian functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_gauss()[source]

Test the gauss function values.

test_single_gauss_quad()[source]

Test the single_gauss_quad function values.

class pyIntensityFeatures.tests.test_utils_distributions.TestMultGauss(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for the multi-peaked Gaussian functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

set_gaussian(add_quad=False)[source]

Set the Gaussian values to test against.

Parameters:
add_quadbool

Add a quadratic background if True (default=False)

test_mult_gauss()[source]

Test the mult_gauss function values for 1, 2, 3, and 4 peaks.

test_mult_gauss_quad()[source]

Test mult_gauss_quad for 1, 2, 3, and 4 Gaussian peaks.

test_mult_gauss_quad_bad_amplitude()[source]

Test mult_gauss_quad raises an error for an extra input.

test_mult_gauss_bad_input_shape()[source]

Test mult_gauss raises an error with badly shaped input.