Public Member Functions | |
def | setUp |
def | tearDown |
def | testCSpline01 |
def | testCSpline02 |
def | testSinusoid01 |
def | testSinusoid02 |
def | checkRms |
Static Public Attributes | |
tuple | datapath |
string | infile_cspline |
string | infile_sinusoid |
string | blparamfile_suffix |
string | outroot |
tid |
Unit tests for task sdbaseline. No interactive testing. The list of tests: testCSpline01 --- test cubic spline fitting with maskmode = 'list' testCSpline02 --- test cubic spline fitting with maskmode = 'auto' testSinusoid01 --- test sinusoidal fitting with maskmode = 'list' testSinusoid02 --- test sinusoidal fitting with maskmode = 'auto' Note: (1) the rms noise of input data is 1.0. (2) the max_rms value comes from +3sigma level of Chi-square distribution with freedom of (2048-38) for cspline, (2048-27) for sinusoid, respectively. created 19/04/2011 by Wataru Kawasaki
Definition at line 766 of file test_sdbaseline.py.
def tests.test_sdbaseline.sdbaseline_funcTest.checkRms | ( | self, | |
blparamfile, | |||
max_rms | |||
) |
Definition at line 857 of file test_sdbaseline.py.
Referenced by tests.test_sdbaseline.sdbaseline_funcTest.testCSpline01(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline02(), tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid01(), and tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid02().
def tests.test_sdbaseline.sdbaseline_funcTest.setUp | ( | self | ) |
Definition at line 793 of file test_sdbaseline.py.
References tests.test_plotuv.plotuv_test.datapath, tests.test_sdbaseline.sdbaseline_unittest_base.datapath, tests.test_msmoments.msmoments_unittest_base.datapath, tests.test_imstat.imstat_test.datapath, tests.test_cleanhelper.cleanhelper_test.datapath, tests.test_imsmooth.imsmooth_test.datapath, tests.test_sdbaseline.sdbaseline_funcTest.datapath, casa_in_py.default(), tests.test_sdbaseline.sdbaseline_funcTest.infile_cspline, and tests.test_sdbaseline.sdbaseline_funcTest.infile_sinusoid.
Definition at line 803 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_funcTest.infile_cspline, and tests.test_sdbaseline.sdbaseline_funcTest.infile_sinusoid.
Test CSpline01: Cubic spline fitting with maskmode = 'list'
Definition at line 809 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_funcTest.blparamfile_suffix, tests.test_sdbaseline.sdbaseline_funcTest.checkRms(), tests.test_sdbaseline.sdbaseline_funcTest.infile_cspline, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
Test CSpline02: Cubic spline fitting with maskmode = 'auto'
Definition at line 821 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_funcTest.blparamfile_suffix, tests.test_sdbaseline.sdbaseline_funcTest.checkRms(), tests.test_sdbaseline.sdbaseline_funcTest.infile_cspline, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
Test Sinusoid01: Sinusoidal fitting with maskmode = 'list'
Definition at line 833 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_funcTest.blparamfile_suffix, tests.test_sdbaseline.sdbaseline_funcTest.checkRms(), tests.test_sdbaseline.sdbaseline_funcTest.infile_sinusoid, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
Test Sinusoid02: Sinusoidal fitting with maskmode = 'auto'
Definition at line 845 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_funcTest.blparamfile_suffix, tests.test_sdbaseline.sdbaseline_funcTest.checkRms(), tests.test_sdbaseline.sdbaseline_funcTest.infile_sinusoid, tests.test_sdbaseline.sdbaseline_basicTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.outroot, tests.test_sdbaseline.sdbaseline_funcTest.outroot, tests.test_sdbaseline.sdbaseline_maskTest.tid, and tests.test_sdbaseline.sdbaseline_funcTest.tid.
string tests.test_sdbaseline.sdbaseline_funcTest.blparamfile_suffix [static] |
Definition at line 789 of file test_sdbaseline.py.
Referenced by tests.test_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline01(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline02(), tests.test_sdbaseline.sdbaseline_storageTest.testDF(), tests.test_sdbaseline.sdbaseline_storageTest.testDT(), tests.test_sdbaseline.sdbaseline_storageTest.testDTow(), tests.test_sdbaseline.sdbaseline_storageTest.testMF(), tests.test_sdbaseline.sdbaseline_storageTest.testMT(), tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid01(), and tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid02().
tuple tests.test_sdbaseline.sdbaseline_funcTest.datapath [static] |
Definition at line 784 of file test_sdbaseline.py.
Referenced by tests.test_simobserve.simobserve_unittest_base._copy_input(), tests.test_sdcoadd.sdcoadd_mergeTest._copy_inputs(), tests.test_sdgrid.sdgrid_unittest_base.addrow(), tests.test_sdlist.sdlist_test.setUp(), tests.test_sdflag.sdflag_test.setUp(), tests.test_sdflagmanager.sdflagmanager_test.setUp(), tests.test_sdreduce.sdreduce_test.setUp(), tests.test_sdfit.sdfit_test.setUp(), tests.test_sdsmooth.sdsmooth_badinputs.setUp(), tests.test_sdgrid.sdgrid_failure_case.setUp(), tests.test_sdimaging.sdimaging_test0.setUp(), tests.test_sdcoadd.sdcoadd_basicTest.setUp(), tests.test_sdsmooth.sdsmooth_basicTest.setUp(), tests.test_sdplot.sdplot_errorTest.setUp(), tests.test_sdgrid.sdgrid_single_integ.setUp(), tests.test_sdstat.sdstat_basicTest.setUp(), tests.test_sdimaging.sdimaging_test1.setUp(), tests.test_sdplot.sdplot_basicTest.setUp(), tests.test_sdgrid.sdgrid_clipping.setUp(), tests.test_sdfit.sdfit_test_exceptions.setUp(), tests.test_sdgrid.sdgrid_flagging.setUp(), tests.test_sdcoadd.sdcoadd_storageTest.setUp(), tests.test_sdgrid.sdgrid_weighting.setUp(), tests.test_sdstat.sdstat_restfreqTest.setUp(), tests.test_sdimaging.sdimaging_test2.setUp(), tests.test_sdgrid.sdgrid_map.setUp(), tests.test_sdsmooth.sdsmooth_storageTest.setUp(), tests.test_sdsave.sdsave_test7.setUp(), tests.test_sdimaging.sdimaging_test3.setUp(), tests.test_sdstat.sdstat_storageTest.setUp(), tests.test_sdgrid.sdgrid_dec_correction.setUp(), tests.test_sdmath.sdmath_storageTest.setUp(), tests.test_sdgrid.sdgrid_grid_center.setUp(), tests.test_sdbaseline.sdbaseline_funcTest.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_simobserve.simobserve_badinputs.setUp(), tests.test_sdplot.sdplot_storageTest.setUp(), tests.test_sdsave.sdsave_storageTest.setUp(), tests.test_sdplot.sdplot_gridTest.setUp(), tests.test_sdplot.sdplot_selectTest.setUp(), tests.test_sdcal.sdcal_test0.test004(), tests.test_sdimprocess.sdimprocess_test0.test005(), tests.test_sdmath.sdmath_test0.test007(), tests.test_sdlist.sdlist_test.test01(), tests.test_sdlist.sdlist_test.test02(), tests.test_sdlist.sdlist_test.test03(), and tests.test_sdstat.sdstat_basicTest.test11().
string tests.test_sdbaseline.sdbaseline_funcTest.infile_cspline [static] |
string tests.test_sdbaseline.sdbaseline_funcTest.infile_sinusoid [static] |
string tests.test_sdbaseline.sdbaseline_funcTest.outroot [static] |
Definition at line 790 of file test_sdbaseline.py.
Referenced by tests.test_sdlist.sdlist_test.test01(), tests.test_sdsmooth.sdsmooth_basicTest.test01(), tests.test_sdstat.sdstat_basicTest.test01(), tests.test_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdlist.sdlist_test.test02(), tests.test_sdreduce.sdreduce_test.test02(), tests.test_sdsmooth.sdsmooth_basicTest.test02(), tests.test_sdstat.sdstat_basicTest.test02(), tests.test_sdlist.sdlist_test.test03(), tests.test_sdreduce.sdreduce_test.test03(), tests.test_sdsmooth.sdsmooth_basicTest.test03(), tests.test_sdstat.sdstat_basicTest.test03(), tests.test_sdlist.sdlist_test.test04(), 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_sdbaseline.sdbaseline_funcTest.testCSpline01(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline02(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdbaseline.sdbaseline_storageTest.testDF(), tests.test_sdsmooth.sdsmooth_storageTest.testDFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDFsm(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdbaseline.sdbaseline_storageTest.testDT(), tests.test_sdsmooth.sdsmooth_storageTest.testDTrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDTsm(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdbaseline.sdbaseline_storageTest.testMF(), tests.test_sdsmooth.sdsmooth_storageTest.testMFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testMFsm(), tests.test_sdstat.sdstat_storageTest.testMT(), tests.test_sdbaseline.sdbaseline_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(), tests.test_sdstat.sdstat_restfreqTest.testRF23(), tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid01(), and tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid02().
Definition at line 791 of file test_sdbaseline.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(), tests.test_sdreduce.sdreduce_test.test10(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline01(), tests.test_sdbaseline.sdbaseline_funcTest.testCSpline02(), tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid01(), and tests.test_sdbaseline.sdbaseline_funcTest.testSinusoid02().