pyIntensityFeatures.tests.test_utils_output

Tests for functions in utils.output.

Classes

TestBoundaryDictFuncs

Tests for functions that create and alter the boundary dicts.

Module Contents

class pyIntensityFeatures.tests.test_utils_output.TestBoundaryDictFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for functions that create and alter the boundary dicts.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

eval_coord_dict()[source]

Evaluate the coordinate dict.

eval_data_dict()[source]

Evaluate the data dict.

eval_dataset()[source]

Evaluate a Dataset assigned to new_data.

update_new_data(inc=0, hemi=1, mlt_inc=0.5)[source]

Create data for the new_data test attribute.

Parameters:
incint

Number by which values will be incremented.

hemiint

1 for Northern and -1 for Southern hemisphere

mlt_incfloat

Increment for the MLT bins (default=0.5)

test_init_boundary_dicts()[source]

Test success for initalizing the boundary dicts.

test_update_boundary_dicts()[source]

Test success for updating the boundary dicts.

test_update_boundary_dicts_change_mlt_inc()[source]

Test raises ValueError for updating with different MLT bin inc.

test_update_boundary_dicts_change_mlt_vals()[source]

Test raises ValueError for updating with different MLT bin vals.

test_reshape_lat_coeff_data_no_lat_bins()[source]

Test ValueError raised with no lat bins when reshaping data.

test_reshape_lat_coeff_data_bad_shaped_lat_bins()[source]

Test ValueError with badly formed lat bins when reshaping data.

test_reshape_lat_coeff_data_inconsistent_lat_bins()[source]

Test ValueError with inconsistent lat bins when reshaping data.

test_reshape_lat_coeff_data_bad_coeff_order()[source]

Test ValueError with badly ordered coeff data when reshaping data.

test_reshape_lat_coeff_data_bad_coeff_dims()[source]

Test ValueError with badly shaped coeff dims when reshaping data.

test_reshape_lat_coeff_data()[source]

Test success when reshaping data.

test_convert_boundary_dict_empty()[source]

Test creation of an empty Dataset without full coordinates.

test_convert_boundary_dict()[source]

Test creation of a Dataset from the boundary dicts.