punchbowl.level1.tests.test_deficient_pixel#

Attributes#

Functions#

sample_bad_pixel_map(, n_bad_pixels)

Generate some random data for testing

perfect_pixel_map() → ndcube.NDCube)

Generate some random data for testing

one_bad_pixel_map() → ndcube.NDCube)

Generate pixel map with one bad pixel at 100, 100

nine_bad_pixel_map() → ndcube.NDCube)

Generate pixel map with one bad pixel at 100, 100

increasing_pixel_data() → ndcube.NDCube)

Generate data of increasing values for testing; data[0,100]=0.0, data[100,0]=100.0

sample_punchdata() → ndcube.NDCube)

Generate a sample PUNCHData object for testing

test_remove_deficient_pixels(→ None)

Test the remove_deficient_pixels prefect flow using a test harness, providing a filename

test_nan_input(→ None)

The module output is tested when NaN data points are included in the input PUNCHData object. Test for no errors.

test_data_loading(→ None)

A specific observation is provided. The module loads it as a PUNCHData object.

test_artificial_pixel_map(→ None)

A known artificial bad pixel map is ingested. The output flags are tested against the input map.

test_data_window_1(→ None)

dataset of increasing values passed in, a bad pixel map is passed in

test_mean_data_window_1(→ None)

dataset of increasing values passed in, a bad pixel map is passed in

test_data_window_9(→ None)

dataset of increasing values passed in, a bad pixel map is passed in

test_mean_data_window_9(→ None)

dataset of increasing values passed in, a bad pixel map is passed in

Module Contents#

punchbowl.level1.tests.test_deficient_pixel.THIS_DIRECTORY#
punchbowl.level1.tests.test_deficient_pixel.sample_bad_pixel_map(shape: tuple = (2048, 2048), n_bad_pixels: int = 20) ndcube.NDCube#

Generate some random data for testing

punchbowl.level1.tests.test_deficient_pixel.perfect_pixel_map(shape: tuple = (2048, 2048)) ndcube.NDCube#

Generate some random data for testing

punchbowl.level1.tests.test_deficient_pixel.one_bad_pixel_map(shape: tuple = (2048, 2048)) ndcube.NDCube#

Generate pixel map with one bad pixel at 100, 100

punchbowl.level1.tests.test_deficient_pixel.nine_bad_pixel_map(shape: tuple = (2048, 2048)) ndcube.NDCube#

Generate pixel map with one bad pixel at 100, 100

punchbowl.level1.tests.test_deficient_pixel.increasing_pixel_data(shape: tuple = (2048, 2048)) ndcube.NDCube#

Generate data of increasing values for testing; data[0,100]=0.0, data[100,0]=100.0

punchbowl.level1.tests.test_deficient_pixel.sample_punchdata(shape: tuple = (2048, 2048)) ndcube.NDCube#

Generate a sample PUNCHData object for testing

punchbowl.level1.tests.test_deficient_pixel.test_remove_deficient_pixels(sample_punchdata: ndcube.NDCube, sample_bad_pixel_map: ndcube.NDCube) None#

Test the remove_deficient_pixels prefect flow using a test harness, providing a filename

punchbowl.level1.tests.test_deficient_pixel.test_nan_input(sample_punchdata: ndcube.NDCube, sample_bad_pixel_map: ndcube.NDCube) None#

The module output is tested when NaN data points are included in the input PUNCHData object. Test for no errors.

punchbowl.level1.tests.test_deficient_pixel.test_data_loading(sample_punchdata: ndcube.NDCube, perfect_pixel_map: ndcube.NDCube) None#

A specific observation is provided. The module loads it as a PUNCHData object. No bad data points, in same as out. uncertainty should be the same in and out.

punchbowl.level1.tests.test_deficient_pixel.test_artificial_pixel_map(sample_punchdata: ndcube.NDCube, sample_bad_pixel_map: ndcube.NDCube) None#

A known artificial bad pixel map is ingested. The output flags are tested against the input map.

punchbowl.level1.tests.test_deficient_pixel.test_data_window_1(increasing_pixel_data: ndcube.NDCube, one_bad_pixel_map: ndcube.NDCube) None#

dataset of increasing values passed in, a bad pixel map is passed in

punchbowl.level1.tests.test_deficient_pixel.test_mean_data_window_1(increasing_pixel_data: ndcube.NDCube, one_bad_pixel_map: ndcube.NDCube) None#

dataset of increasing values passed in, a bad pixel map is passed in

punchbowl.level1.tests.test_deficient_pixel.test_data_window_9(increasing_pixel_data: ndcube.NDCube, nine_bad_pixel_map: ndcube.NDCube) None#

dataset of increasing values passed in, a bad pixel map is passed in

punchbowl.level1.tests.test_deficient_pixel.test_mean_data_window_9(increasing_pixel_data: ndcube.NDCube, nine_bad_pixel_map: ndcube.NDCube) None#

dataset of increasing values passed in, a bad pixel map is passed in