pyIntensityFeatures.tests.test_utils_coords

Tests for functions in utils.coords.

Attributes

apexpy

Classes

TestTimeFuncs

Tests for time-handling functions.

TestSliceMinMax

Tests for get_slice_mlat_max_min.

TestConvertGeoToMag

Tests for convert_geo_to_mag.

Module Contents

pyIntensityFeatures.tests.test_utils_coords.apexpy = None[source]
class pyIntensityFeatures.tests.test_utils_coords.TestTimeFuncs(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for time-handling functions.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_as_datetime()[source]

Test success for datetime casting.

class pyIntensityFeatures.tests.test_utils_coords.TestSliceMinMax(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for get_slice_mlat_max_min.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_get_slice_mlat_max_min_all_good()[source]

Test with all bins valid.

test_get_slice_mlat_max_min_with_cutout()[source]

Test with a cutout in samples.

test_get_slice_mlat_max_min_all_bad()[source]

Test with no valid samples.

class pyIntensityFeatures.tests.test_utils_coords.TestConvertGeoToMag(methodName='runTest')[source]

Bases: unittest.TestCase

Tests for convert_geo_to_mag.

setUp()[source]

Set up the test runs.

tearDown()[source]

Tear down the test environment.

test_aacgmv2_conversion()[source]

Test that the conversion with the AACGMV2 methods.

test_apexpy_conversion()[source]

Test that the conversion with the apexpy methods.

test_apexpy_conversion_no_apexpy()[source]

Test the conversion raises ValueError with the apexpy methods.