Static Public Attributes | |
tuple | datapath |
string | taskname |
Private Member Functions | |
def | _checkfile |
helper functions for tests ### | |
def | _getStats |
def | _compareStats |
def | _isInAllowedRange |
def | _to_list |
def | _compareBLparam |
Base class for sdbaseline unit test
Definition at line 16 of file test_sdbaseline.py.
def tests.test_sdbaseline.sdbaseline_unittest_base._checkfile | ( | self, | |
name | |||
) | [private] |
helper functions for tests ###
Definition at line 28 of file test_sdbaseline.py.
Referenced by tests.test_sdsave.sdsave_test7._check_restfreq(), tests.test_sdmath.sdmath_unittest_base._checkresult(), tests.test_sdimaging.sdimaging_unittest_base._checkshape(), tests.test_sdimprocess.sdimprocess_unittest_base._checkstats(), tests.test_sdimaging.sdimaging_unittest_base._checkstats(), tests.test_sdtpimaging.sdtpimaging_unittest_base._compare(), tests.test_sdscale.sdscale_unittest_base._compare(), tests.test_sdmath.sdmath_unittest_base._compare(), tests.test_sdcal.sdcal_avetest_base._compare(), tests.test_sdbaseline.sdbaseline_unittest_base._compareBLparam(), tests.test_sdcal.sdcal_caltest_base._comparecal(), tests.test_sdstat.sdstat_unittest_base._convert_masklist(), tests.test_sdsave.sdsave_unittest_base._get(), tests.test_sdsave.sdsave_storageTest._get_scantable_params(), tests.test_sdbaseline.sdbaseline_unittest_base._getStats(), tests.test_sdsmooth.sdsmooth_unittest_base._getStats(), tests.test_sdcal.sdcal_test_edgemarker_generic.testEdgeMarkerGeneric0(), tests.test_sdcal.sdcal_test_edgemarker_generic.testEdgeMarkerGeneric1(), tests.test_sdcal.sdcal_test_edgemarker_raster.testEdgeMarkerRaster0(), and tests.test_sdcal.sdcal_test_edgemarker_raster.testEdgeMarkerRaster1().
def tests.test_sdbaseline.sdbaseline_unittest_base._compareBLparam | ( | self, | |
out, | |||
reference | |||
) | [private] |
Definition at line 133 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_unittest_base._checkfile().
Referenced by tests.test_sdbaseline.sdbaseline_basicTest.test01(), tests.test_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdbaseline.sdbaseline_basicTest.test02(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask01(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask02(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask03(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask04(), tests.test_sdbaseline.sdbaseline_storageTest.testDF(), tests.test_sdbaseline.sdbaseline_storageTest.testDT(), tests.test_sdbaseline.sdbaseline_storageTest.testDTow(), tests.test_sdbaseline.sdbaseline_storageTest.testMF(), and tests.test_sdbaseline.sdbaseline_storageTest.testMT().
def tests.test_sdbaseline.sdbaseline_unittest_base._compareStats | ( | self, | |
currstat, | |||
refstat, | |||
reltol = 1.0e-2 , |
|||
complist = None |
|||
) | [private] |
Definition at line 41 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_unittest_base._getStats(), tests.test_sdbaseline.sdbaseline_unittest_base._isInAllowedRange(), and tests.test_sdbaseline.sdbaseline_unittest_base._to_list().
Referenced by tests.test_sdbaseline.sdbaseline_basicTest.test01(), tests.test_sdstat.sdstat_basicTest.test01(), tests.test_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdbaseline.sdbaseline_basicTest.test02(), tests.test_sdstat.sdstat_basicTest.test02(), tests.test_sdstat.sdstat_basicTest.test03(), tests.test_sdstat.sdstat_basicTest.test04(), tests.test_sdstat.sdstat_basicTest.test05(), tests.test_sdstat.sdstat_basicTest.test06(), tests.test_sdstat.sdstat_basicTest.test07(), tests.test_sdstat.sdstat_basicTest.test08(), tests.test_sdstat.sdstat_basicTest.test09(), tests.test_sdstat.sdstat_basicTest.test10(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask01(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask02(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask03(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask04(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask05(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask06(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask07(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask08(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask09(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask10(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask11(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask12(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdbaseline.sdbaseline_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdbaseline.sdbaseline_storageTest.testDT(), tests.test_sdbaseline.sdbaseline_storageTest.testDTow(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdbaseline.sdbaseline_storageTest.testMF(), tests.test_sdstat.sdstat_storageTest.testMT(), tests.test_sdbaseline.sdbaseline_storageTest.testMT(), 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().
def tests.test_sdbaseline.sdbaseline_unittest_base._getStats | ( | self, | |
filename, | |||
ifno = None |
|||
) | [private] |
Definition at line 33 of file test_sdbaseline.py.
References tests.test_sdbaseline.sdbaseline_unittest_base._checkfile().
Referenced by tests.test_sdbaseline.sdbaseline_unittest_base._compareStats(), tests.test_sdsmooth.sdsmooth_basicTest.test01(), tests.test_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdsmooth.sdsmooth_basicTest.test02(), tests.test_sdsmooth.sdsmooth_basicTest.test03(), tests.test_sdsmooth.sdsmooth_basicTest.test04(), tests.test_sdsmooth.sdsmooth_basicTest.test05(), tests.test_sdsmooth.sdsmooth_basicTest.test06(), tests.test_sdsmooth.sdsmooth_basicTest.test07(), tests.test_sdsmooth.sdsmooth_basicTest.test08(), tests.test_sdsmooth.sdsmooth_basicTest.test09(), tests.test_sdsmooth.sdsmooth_basicTest.test10(), tests.test_sdsmooth.sdsmooth_basicTest.test11(), tests.test_sdsmooth.sdsmooth_basicTest.test12(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask01(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask02(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask03(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask04(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask05(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask06(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask07(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask08(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask09(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask10(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask11(), tests.test_sdbaseline.sdbaseline_maskTest.testblmask12(), tests.test_sdbaseline.sdbaseline_storageTest.testDF(), tests.test_sdsmooth.sdsmooth_storageTest.testDFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDFsm(), tests.test_sdbaseline.sdbaseline_storageTest.testDT(), tests.test_sdsmooth.sdsmooth_storageTest.testDTrg(), tests.test_sdsmooth.sdsmooth_storageTest.testDTsm(), tests.test_sdbaseline.sdbaseline_storageTest.testMF(), tests.test_sdsmooth.sdsmooth_storageTest.testMFrg(), tests.test_sdsmooth.sdsmooth_storageTest.testMFsm(), tests.test_sdbaseline.sdbaseline_storageTest.testMT(), tests.test_sdsmooth.sdsmooth_storageTest.testMTrg(), and tests.test_sdsmooth.sdsmooth_storageTest.testMTsm().
def tests.test_sdbaseline.sdbaseline_unittest_base._isInAllowedRange | ( | self, | |
testval, | |||
refval, | |||
reltol = 1.e-2 |
|||
) | [private] |
Check if a test value is within permissive relative difference from refval. Returns a boolean. testval & refval : two numerical values to compare reltol : allowed relative difference to consider the two values to be equal. (default 0.01)
Definition at line 100 of file test_sdbaseline.py.
Referenced by tests.test_sdcoadd.sdcoadd_unittest_base._compareDictVal(), tests.test_sdplot.sdplot_unittest_base._compareDictVal(), tests.test_sdmath.sdmath_storageTest._compareDictVal(), tests.test_sdbaseline.sdbaseline_unittest_base._compareStats(), and tests.test_sdstat.sdstat_unittest_base._compareStats().
def tests.test_sdbaseline.sdbaseline_unittest_base._to_list | ( | self, | |
input | |||
) | [private] |
Convert input to a list If input is None, this method simply returns None.
Definition at line 118 of file test_sdbaseline.py.
References tests.test_imcontsub.list.
Referenced by tests.test_sdcoadd.sdcoadd_unittest_base._compareDictVal(), tests.test_sdplot.sdplot_unittest_base._compareDictVal(), tests.test_sdmath.sdmath_storageTest._compareDictVal(), tests.test_sdbaseline.sdbaseline_unittest_base._compareStats(), tests.test_sdstat.sdstat_unittest_base._compareStats(), and tests.test_sdstat.sdstat_unittest_base._get_elements().
tuple tests.test_sdbaseline.sdbaseline_unittest_base.datapath [static] |
Definition at line 21 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_sdbaseline.sdbaseline_basicTest.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_sdbaseline.sdbaseline_maskTest.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_sdbaseline.sdbaseline_multi_IF_test.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_simobserve.simobserve_badinputs.setUp(), tests.test_sdbaseline.sdbaseline_storageTest.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_sdbaseline.sdbaseline_multi_IF_test.test01multi(), tests.test_sdlist.sdlist_test.test02(), tests.test_sdlist.sdlist_test.test03(), and tests.test_sdstat.sdstat_basicTest.test11().
string tests.test_sdbaseline.sdbaseline_unittest_base.taskname [static] |
Definition at line 23 of file test_sdbaseline.py.