pyIntensityFeatures.tests.test_proc_fitting

Tests for functions in proc.fitting.

Classes

TestFittingFuncs

Tests for the fitting functions.

Module Contents

class pyIntensityFeatures.tests.test_proc_fitting.TestFittingFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for the fitting functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

get_peak_inds()[source]

Get the MLat indices of the coefficient peaks.

eval_gaussian_fit_out(hemisphere)[source]

Evaluate the output of get_gaussian_func_fit.

Parameters:
hemisphereint

-1 for Southern hemisphere, 1 for Northern hemisphere.

test_get_gaussian_func_fit()[source]

Test intensity fitting success.

test_get_gaussian_func_fit_high_intensity_thresh()[source]

Test intensity fitting failure with a high intensity threshold.

test_get_gaussian_func_fit_high_count_thresh()[source]

Test intensity fitting failure with a high count threshold.

test_get_gaussian_func_fit_high_lat_perc()[source]

Test intensity fitting failure with a high lat threshold.

test_gauss_quad_err()[source]

Test the gauss_quad_err function returns correct values.

test_estimate_peak_widths()[source]

Test estimate_peak_widths function.