autowisp.magnitude_fitting.tests.test_mphotref_collector module

Class Inheritance Diagram

Inheritance diagram of FloatTestCase, MasterPhotrefCollector, Table, TemporaryDirectory, TestMphotrefCollector

Define tests to verify master photref collector works correctly.

class autowisp.magnitude_fitting.tests.test_mphotref_collector.TestMphotrefCollector(methodName='runTest')[source]

Bases: FloatTestCase

Inheritance diagram of autowisp.magnitude_fitting.tests.test_mphotref_collector.TestMphotrefCollector

Tests of the MasterPhotrefCollector.

_assertMaster(test_master_fname, test_case)[source]

Assert that the generated master references matches the expected.

_assertStat(test_stat_fname, test_case, nphot)[source]

Assert that the generated statistics matches the expected.

_get_big_catalog()[source]

Return the catalog to use for the big test.

_get_collector_inputs_big(img_i)[source]

Feed the collector with the stars for the big test.

One out of every 9 catalog stars will never appear in an image (128 stars). Another one out of very 9 catalog stars will only appear in one out of 8 images. Another one of 9 catalog stars will be missing from 1/8th of the images and 768 stars will appear in all images.

For each star for each photometry one out of 14 images will have outlier flux (different image for different photometry). Ditto for photometry error estimates.

_get_collector_inputs_rotatestars(img_i)[source]

Feed the collector with 10 stars, 20 images, 5 photometries.

_get_collector_inputs_tiny(img_i)[source]

Feed the collector with 10 stars, 20 images, 5 photometries.

_get_empty_collector_inputs(test_case)[source]

Return empty arrays with correct dtype for collector inputs.

_get_empty_masters(test_name)[source]

Return properly initalized masters with undefined entries.

_get_empty_stat(test_case)[source]

Return empty, but properly configured statistics DataFrame.

_get_master_big()[source]

Return the expected master Data Frame for the big test.

_get_master_rotatestars()[source]

Return the expected master DataFrame for the rotatestars test.

_get_rotatestars_catalog()[source]

Return the catalog to use for the rotatestars test.

_get_stat_big()[source]

Return the expected statistics file for the big test.

_get_stat_rotatestars()[source]

Return the expected statistics DataFrame for the rotatestars test.

_get_tiny_catalog()[source]

Return the catalog to use for the tiny test.

perform_test(test_name)[source]

Run a single test.

test_big()[source]

Big test.

test_rotatestars()[source]

Test with rotating collection of stars between images.

test_tiny()[source]

Tiny super-fast test.