autowisp.magnitude_fitting.tests.test_mphotref_collector module
Class Inheritance Diagram

Define tests to verify master photref collector works correctly.
- class autowisp.magnitude_fitting.tests.test_mphotref_collector.TestMphotrefCollector(methodName='runTest')[source]
Bases:
FloatTestCase
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_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.