Public Member Functions | |
def | setUp |
def | tearDown |
def | test00 |
def | test01 |
def | test02 |
def | test03 |
def | test04 |
def | test05 |
def | test06 |
def | test07 |
def | test08 |
def | test09 |
def | test10 |
Public Attributes | |
tid | |
Static Public Attributes | |
tuple | datapath |
string | infile0 |
string | infile1 |
list | infiles |
string | outroot |
Private Member Functions | |
def | _row0_stats |
def | _teststats0 |
Basic unit tests for task sdreduce. No interactive testing. The list of tests: test00 --- default parameters (raises an errror) test01 --- Default parameters + valid input filename test02 --- operate all 3 steps (mostly with default parameters) test03 --- explicitly specify all parameters test04-07 --- do one of calibration, average, baseline, or smooth test08-10 --- skip one of of calibration and average, baseline, or smooth Note: input data (infile0) is generated from a single dish regression data, 'OrionS_rawACSmod', as follows: default(sdsave) sdsave(infile='OrionS_rawACSmod',outfile=self.infile0,outform='ASAP') -> Just converted to scantable to eliminate errors by data conversion.
Definition at line 16 of file test_sdreduce.py.
def tests.test_sdreduce.sdreduce_test._row0_stats | ( | self, | |
file | |||
) | [private] |
Definition at line 56 of file test_sdreduce.py.
Referenced by tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdreduce.sdreduce_test.test04(), tests.test_sdreduce.sdreduce_test.test05(), tests.test_sdreduce.sdreduce_test.test06(), tests.test_sdreduce.sdreduce_test.test07(), tests.test_sdreduce.sdreduce_test.test08(), tests.test_sdreduce.sdreduce_test.test09(), and tests.test_sdreduce.sdreduce_test.test10().
def tests.test_sdreduce.sdreduce_test._teststats0 | ( | self, | |
teststat, | |||
refstat, | |||
places = 4 |
|||
) | [private] |
Definition at line 69 of file test_sdreduce.py.
Referenced by tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdreduce.sdreduce_test.test04(), tests.test_sdreduce.sdreduce_test.test05(), tests.test_sdreduce.sdreduce_test.test06(), tests.test_sdreduce.sdreduce_test.test07(), tests.test_sdreduce.sdreduce_test.test08(), tests.test_sdreduce.sdreduce_test.test09(), and tests.test_sdreduce.sdreduce_test.test10().
def tests.test_sdreduce.sdreduce_test.setUp | ( | self | ) |
Definition at line 44 of file test_sdreduce.py.
References tests.test_plotuv.plotuv_test.datapath, tests.test_sdcoadd.sdcoadd_unittest_base.datapath, tests.test_sdbaseline.sdbaseline_unittest_base.datapath, tests.test_sdplot.sdplot_unittest_base.datapath, tests.test_sdlist.sdlist_test.datapath, tests.test_msmoments.msmoments_unittest_base.datapath, tests.test_sdflagmanager.sdflagmanager_test.datapath, tests.test_sdgrid.sdgrid_unittest_base.datapath, tests.test_sdflag.sdflag_test.datapath, tests.test_sdimprocess.sdimprocess_unittest_base.datapath, tests.test_sdmath.sdmath_unittest_base.datapath, tests.test_sdcal.sdcal_unittest_base.datapath, tests.test_imstat.imstat_test.datapath, tests.test_sdreduce.sdreduce_test.datapath, tests.test_sdfit.sdfit_test.datapath, tests.test_cleanhelper.cleanhelper_test.datapath, tests.test_sdimaging.sdimaging_unittest_base.datapath, tests.test_imsmooth.imsmooth_test.datapath, tests.test_sdcoadd.sdcoadd_mergeTest.datapath, tests.test_sdfit.sdfit_test_exceptions.datapath, tests.test_sdbaseline.sdbaseline_funcTest.datapath, casa_in_py.default(), tests.test_sdlist.sdlist_test.infiles, tests.test_sdreduce.sdreduce_test.infiles, and task_sdimprocess.sdimprocess_worker.infiles.
def tests.test_sdreduce.sdreduce_test.tearDown | ( | self | ) |
Definition at line 51 of file test_sdreduce.py.
References tests.test_sdlist.sdlist_test.infiles, tests.test_sdreduce.sdreduce_test.infiles, and task_sdimprocess.sdimprocess_worker.infiles.
def tests.test_sdreduce.sdreduce_test.test00 | ( | self | ) |
Test 0: Default parameters (raises an errror)
Definition at line 81 of file test_sdreduce.py.
def tests.test_sdreduce.sdreduce_test.test01 | ( | self | ) |
Test 1: Default parameters + valid input filename (do nothing)
Definition at line 87 of file test_sdreduce.py.
def tests.test_sdreduce.sdreduce_test.test02 | ( | self | ) |
Test 2: operate all steps (mostly with default parameters) testing if default parameter values are changed
Definition at line 105 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdreduce.sdreduce_test.infile0, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test03 | ( | self | ) |
Test 3: explicitly specify all parameters testing if parameter names are changed
Definition at line 134 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test.infile0, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test04 | ( | self | ) |
Test 4: operate only calibration step
Definition at line 189 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdreduce.sdreduce_test.infile0, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test05 | ( | self | ) |
Test 5: operate only averaging step
Definition at line 208 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdlist.sdlist_test.infile1, tests.test_sdreduce.sdreduce_test.infile1, tests.test_makemask.test_merge.infile1, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test06 | ( | self | ) |
Test 6: operate only smoothing step
Definition at line 231 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdlist.sdlist_test.infile1, tests.test_sdreduce.sdreduce_test.infile1, tests.test_makemask.test_merge.infile1, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test07 | ( | self | ) |
Test 7: operate only baseline step
Definition at line 251 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdlist.sdlist_test.infile1, tests.test_sdreduce.sdreduce_test.infile1, tests.test_makemask.test_merge.infile1, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test08 | ( | self | ) |
Test 8: skip calibration and averaging
Definition at line 271 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdlist.sdlist_test.infile1, tests.test_sdreduce.sdreduce_test.infile1, tests.test_makemask.test_merge.infile1, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test09 | ( | self | ) |
Test 9: skip smoothing
Definition at line 294 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdreduce.sdreduce_test.infile0, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
def tests.test_sdreduce.sdreduce_test.test10 | ( | self | ) |
Test 10: skip baseline
Definition at line 317 of file test_sdreduce.py.
References tests.test_sdreduce.sdreduce_test._row0_stats(), tests.test_sdreduce.sdreduce_test._teststats0(), tests.test_sdreduce.sdreduce_test.infile0, tests.test_sdlist.sdlist_test.outroot, tests.test_sdreduce.sdreduce_test.outroot, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_multi_IF_test.outroot, tests.test_sdbaseline.sdbaseline_storageTest.outroot, tests.test_sdreduce.sdreduce_test.tid, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
tuple tests.test_sdreduce.sdreduce_test.datapath [static] |
Definition at line 35 of file test_sdreduce.py.
Referenced by tests.test_simobserve.simobserve_unittest_base._copy_input(), tests.test_sdreduce.sdreduce_test.setUp(), tests.test_sdsmooth.sdsmooth_badinputs.setUp(), tests.test_sdsmooth.sdsmooth_basicTest.setUp(), tests.test_sdstat.sdstat_basicTest.setUp(), tests.test_sdstat.sdstat_restfreqTest.setUp(), tests.test_sdsmooth.sdsmooth_storageTest.setUp(), tests.test_sdsave.sdsave_test7.setUp(), tests.test_sdstat.sdstat_storageTest.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_simobserve.simobserve_badinputs.setUp(), tests.test_sdsave.sdsave_storageTest.setUp(), and tests.test_sdstat.sdstat_basicTest.test11().
string tests.test_sdreduce.sdreduce_test.infile0 [static] |
Definition at line 38 of file test_sdreduce.py.
Referenced by tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdreduce.sdreduce_test.test03(), tests.test_sdreduce.sdreduce_test.test04(), tests.test_sdreduce.sdreduce_test.test09(), and tests.test_sdreduce.sdreduce_test.test10().
string tests.test_sdreduce.sdreduce_test.infile1 [static] |
Definition at line 40 of file test_sdreduce.py.
Referenced by tests.test_sdreduce.sdreduce_test.test05(), tests.test_sdreduce.sdreduce_test.test06(), tests.test_sdreduce.sdreduce_test.test07(), and tests.test_sdreduce.sdreduce_test.test08().
list tests.test_sdreduce.sdreduce_test.infiles [static] |
Definition at line 41 of file test_sdreduce.py.
Referenced by sdutil.sdtask_template.initialize(), task_sdcoadd.sdcoadd_worker.merge(), tests.test_sdreduce.sdreduce_test.setUp(), and tests.test_sdreduce.sdreduce_test.tearDown().
string tests.test_sdreduce.sdreduce_test.outroot [static] |
Definition at line 42 of file test_sdreduce.py.
Referenced by tests.test_sdsmooth.sdsmooth_basicTest.test01(), tests.test_sdstat.sdstat_basicTest.test01(), tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdsmooth.sdsmooth_basicTest.test02(), tests.test_sdstat.sdstat_basicTest.test02(), tests.test_sdreduce.sdreduce_test.test03(), tests.test_sdsmooth.sdsmooth_basicTest.test03(), tests.test_sdstat.sdstat_basicTest.test03(), tests.test_sdreduce.sdreduce_test.test04(), tests.test_sdsmooth.sdsmooth_basicTest.test04(), tests.test_sdstat.sdstat_basicTest.test04(), tests.test_sdreduce.sdreduce_test.test05(), tests.test_sdsmooth.sdsmooth_basicTest.test05(), tests.test_sdstat.sdstat_basicTest.test05(), tests.test_sdreduce.sdreduce_test.test06(), tests.test_sdsmooth.sdsmooth_basicTest.test06(), tests.test_sdstat.sdstat_basicTest.test06(), tests.test_sdreduce.sdreduce_test.test07(), tests.test_sdsmooth.sdsmooth_basicTest.test07(), tests.test_sdstat.sdstat_basicTest.test07(), tests.test_sdreduce.sdreduce_test.test08(), tests.test_sdsmooth.sdsmooth_basicTest.test08(), tests.test_sdstat.sdstat_basicTest.test08(), tests.test_sdreduce.sdreduce_test.test09(), tests.test_sdsmooth.sdsmooth_basicTest.test09(), tests.test_sdstat.sdstat_basicTest.test09(), tests.test_sdreduce.sdreduce_test.test10(), tests.test_sdstat.sdstat_basicTest.test10(), tests.test_sdsmooth.sdsmooth_basicTest.test10(), tests.test_sdstat.sdstat_basicTest.test11(), tests.test_sdsmooth.sdsmooth_basicTest.test11(), tests.test_sdsmooth.sdsmooth_basicTest.test12(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdsmooth.sdsmooth_storageTest.testDFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDFsm(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdsmooth.sdsmooth_storageTest.testDTrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDTsm(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdsmooth.sdsmooth_storageTest.testMFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testMFsm(), tests.test_sdstat.sdstat_storageTest.testMT(), tests.test_sdsmooth.sdsmooth_storageTest.testMTrg(), tests.test_sdsmooth.sdsmooth_storageTest.testMTsm(), tests.test_sdstat.sdstat_restfreqTest.testRF01(), tests.test_sdstat.sdstat_restfreqTest.testRF02(), tests.test_sdstat.sdstat_restfreqTest.testRF11(), tests.test_sdstat.sdstat_restfreqTest.testRF12(), tests.test_sdstat.sdstat_restfreqTest.testRF13(), tests.test_sdstat.sdstat_restfreqTest.testRF21(), tests.test_sdstat.sdstat_restfreqTest.testRF22(), and tests.test_sdstat.sdstat_restfreqTest.testRF23().
Definition at line 89 of file test_sdreduce.py.
Referenced by tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdreduce.sdreduce_test.test03(), tests.test_sdreduce.sdreduce_test.test04(), tests.test_sdreduce.sdreduce_test.test05(), tests.test_sdreduce.sdreduce_test.test06(), tests.test_sdreduce.sdreduce_test.test07(), tests.test_sdreduce.sdreduce_test.test08(), tests.test_sdreduce.sdreduce_test.test09(), and tests.test_sdreduce.sdreduce_test.test10().