Static Public Attributes | |
tuple | datapath |
string | taskname |
string | outroot |
string | outsuff |
string | infile |
Private Member Functions | |
def | _checkfile |
helper functions for tests ### | |
def | _convert_masklist |
def | _isInAllowedRange |
def | _to_list |
def | _get_elements |
def | _compareStats |
def | _compareFiles |
Base class for sdstat unit test
Definition at line 16 of file test_sdstat.py.
def tests.test_sdstat.sdstat_unittest_base._checkfile | ( | self, | |
name | |||
) | [private] |
helper functions for tests ###
Definition at line 29 of file test_sdstat.py.
Referenced by tests.test_sdtpimaging.sdtpimaging_unittest_base._compare(), and tests.test_sdstat.sdstat_unittest_base._convert_masklist().
def tests.test_sdstat.sdstat_unittest_base._compareFiles | ( | self, | |
testfile, | |||
reffile | |||
) | [private] |
Definition at line 161 of file test_sdstat.py.
References listing.compare().
Referenced by tests.test_sdstat.sdstat_basicTest.test11().
def tests.test_sdstat.sdstat_unittest_base._compareStats | ( | self, | |
currstat, | |||
refstat, | |||
icomp = None , |
|||
allowdiff = 1.e-5 , |
|||
compstats = None |
|||
) | [private] |
Definition at line 117 of file test_sdstat.py.
References tests.test_sdstat.sdstat_unittest_base._get_elements(), tests.test_sdstat.sdstat_unittest_base._isInAllowedRange(), tests.test_sdcoadd.sdcoadd_unittest_base._isInAllowedRange(), tests.test_sdbaseline.sdbaseline_unittest_base._isInAllowedRange(), tests.test_sdplot.sdplot_unittest_base._isInAllowedRange(), tests.test_sdmath.sdmath_storageTest._isInAllowedRange(), tests.test_sdstat.sdstat_unittest_base._to_list(), tests.test_sdcoadd.sdcoadd_unittest_base._to_list(), tests.test_sdbaseline.sdbaseline_unittest_base._to_list(), tests.test_sdplot.sdplot_unittest_base._to_list(), and tests.test_sdmath.sdmath_storageTest._to_list().
Referenced by tests.test_sdstat.sdstat_basicTest.test01(), 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_sdstat.sdstat_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdstat.sdstat_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_sdstat.sdstat_unittest_base._convert_masklist | ( | self, | |
chanlist, | |||
unit, | |||
filename, | |||
spw = 0 , |
|||
restfreq = '' |
|||
) | [private] |
Convert a masklist from channel unit to a specified unit chanlist : masklist in channel unit unit : an output unit of masklist filename : a file name to get spectral coordinate from spw : spectral window ID to get spectral coordinate
Definition at line 34 of file test_sdstat.py.
References tests.test_sdbaseline.sdbaseline_unittest_base._checkfile(), tests.test_sdsmooth.sdsmooth_unittest_base._checkfile(), tests.test_sdstat.sdstat_unittest_base._checkfile(), tests.test_sdimprocess.sdimprocess_unittest_base._checkfile(), tests.test_sdscale.sdscale_unittest_base._checkfile(), tests.test_sdmath.sdmath_unittest_base._checkfile(), tests.test_sdcal.sdcal_unittest_base._checkfile(), tests.test_sdsave.sdsave_unittest_base._checkfile(), and tests.test_sdimaging.sdimaging_unittest_base._checkfile().
Referenced by tests.test_sdstat.sdstat_basicTest.test08(), tests.test_sdstat.sdstat_basicTest.test09(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdstat.sdstat_storageTest.testMF(), and tests.test_sdstat.sdstat_storageTest.testMT().
def tests.test_sdstat.sdstat_unittest_base._get_elements | ( | self, | |
fulllist, | |||
elems = None |
|||
) | [private] |
Returns a list of selected elements from an input list fulllist : an input list elems : a list of element IDs to return
Definition at line 93 of file test_sdstat.py.
References tests.test_sdstat.sdstat_unittest_base._to_list(), tests.test_sdcoadd.sdcoadd_unittest_base._to_list(), tests.test_sdbaseline.sdbaseline_unittest_base._to_list(), tests.test_sdplot.sdplot_unittest_base._to_list(), tests.test_sdmath.sdmath_storageTest._to_list(), and irc_cs_task_regression.max.
Referenced by tests.test_sdstat.sdstat_unittest_base._compareStats().
def tests.test_sdstat.sdstat_unittest_base._isInAllowedRange | ( | self, | |
testval, | |||
refval, | |||
allowdiff = 1.e-5 |
|||
) | [private] |
Check if a test value is within permissive relative difference from refval. Returns a boolean. testval & refval : two numerical values to compare allowdiff : allowed relative difference to consider the two values to be equal. (default 0.01)
Definition at line 62 of file test_sdstat.py.
Referenced by tests.test_sdstat.sdstat_unittest_base._compareStats().
def tests.test_sdstat.sdstat_unittest_base._to_list | ( | self, | |
input | |||
) | [private] |
Convert input to a list If input is None, this method simply returns None.
Definition at line 80 of file test_sdstat.py.
References tests.test_imcontsub.list.
Referenced by tests.test_sdstat.sdstat_unittest_base._compareStats(), and tests.test_sdstat.sdstat_unittest_base._get_elements().
tuple tests.test_sdstat.sdstat_unittest_base.datapath [static] |
Reimplemented in tests.test_sdstat.sdstat_exceptions.
Definition at line 21 of file test_sdstat.py.
Referenced by tests.test_simobserve.simobserve_unittest_base._copy_input(), tests.test_sdstat.sdstat_basicTest.setUp(), tests.test_sdstat.sdstat_restfreqTest.setUp(), tests.test_sdstat.sdstat_storageTest.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_simobserve.simobserve_badinputs.setUp(), and tests.test_sdstat.sdstat_basicTest.test11().
string tests.test_sdstat.sdstat_unittest_base.infile [static] |
Reimplemented in tests.test_sdstat.sdstat_exceptions.
Definition at line 26 of file test_sdstat.py.
Referenced by task_sdtpimaging.sdtpimaging_worker.__backup(), task_sdtpimaging.sdtpimaging_worker.__execute_baseline(), task_sdtpimaging.sdtpimaging_worker.__execute_flag(), task_sdtpimaging.sdtpimaging_worker.__execute_imaging(), task_sdscale.sdscale_worker.__get_outform(), task_sdsave.sdsave_worker.cleanup(), task_sdimaging.sdimaging_worker.execute(), sdutil.sdtask_template.initialize(), sdutil.sdtask_template_imaging.initialize(), task_sdsmooth.sdsmooth_worker.initialize_scan(), task_sdplot.sdplot_worker.initialize_scan(), task_sdcal.sdcal_worker.initialize_scan(), task_sdfit.sdfit_worker.initialize_scan(), task_sdbaseline.sdbaseline_worker.initialize_scan(), task_sdstat.sdstat_worker.initialize_scan(), task_sdflag.sdflag_worker.initialize_scan(), task_sdtpimaging.sdtpimaging_worker.parameter_check(), tests.test_sdstat.sdstat_basicTest.setUp(), tests.test_sdstat.sdstat_restfreqTest.setUp(), tests.test_sdstat.sdstat_storageTest.setUp(), tests.test_sdstat.sdstat_exceptions.setUp(), tests.test_sdtpimaging.sdtpimaging_test0.tearDown(), tests.test_sdtpimaging.sdtpimaging_test1.tearDown(), tests.test_sdtpimaging.sdtpimaging_test2.tearDown(), tests.test_sdstat.sdstat_basicTest.tearDown(), tests.test_sdstat.sdstat_restfreqTest.tearDown(), tests.test_sdstat.sdstat_storageTest.tearDown(), tests.test_sdstat.sdstat_exceptions.tearDown(), tests.test_sdtpimaging.sdtpimaging_test0.test001(), tests.test_sdtpimaging.sdtpimaging_test0.test002(), tests.test_sdtpimaging.sdtpimaging_test0.test003(), tests.test_sdtpimaging.sdtpimaging_test0.test004(), tests.test_sdtpimaging.sdtpimaging_test0.test006(), tests.test_sdtpimaging.sdtpimaging_test0.test007(), tests.test_sdtpimaging.sdtpimaging_test0.test008(), tests.test_sdtpimaging.sdtpimaging_test0.test009(), tests.test_sdstat.sdstat_basicTest.test01(), 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_sdtpimaging.sdtpimaging_test1.test100(), tests.test_sdstat.sdstat_basicTest.test11(), tests.test_sdtpimaging.sdtpimaging_test2.test200(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdstat.sdstat_storageTest.testMT(), tests.test_sdstat.sdstat_exceptions.testNoData(), 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().
string tests.test_sdstat.sdstat_unittest_base.outroot [static] |
Reimplemented in tests.test_sdstat.sdstat_exceptions.
Definition at line 24 of file test_sdstat.py.
Referenced by tests.test_sdstat.sdstat_basicTest.test01(), 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_sdstat.sdstat_basicTest.test11(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdstat.sdstat_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().
string tests.test_sdstat.sdstat_unittest_base.outsuff [static] |
Reimplemented in tests.test_sdstat.sdstat_exceptions.
Definition at line 25 of file test_sdstat.py.
Referenced by tests.test_sdstat.sdstat_basicTest.test01(), 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_sdstat.sdstat_basicTest.test11(), tests.test_sdstat.sdstat_storageTest.testDF(), tests.test_sdstat.sdstat_storageTest.testDT(), tests.test_sdstat.sdstat_storageTest.testMF(), tests.test_sdstat.sdstat_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().
string tests.test_sdstat.sdstat_unittest_base.taskname [static] |
Reimplemented in tests.test_sdstat.sdstat_exceptions.
Definition at line 23 of file test_sdstat.py.