Base class for all testing classes. More...
Public Attributes | |
npol | |
Static Public Attributes | |
string | taskname |
tuple | datapath |
string | basefile |
summaryStr | |
firstSpec | |
nrow | |
ifno | |
cycleno | |
scanno | |
Private Member Functions | |
def | _checkfile |
def | _setAttributes |
def | _compare |
def | _get |
Base class for all testing classes.
Base class for testing classes. Implements several methods to compare the results.
Definition at line 25 of file test_sdsave.py.
def tests.test_sdsave.sdsave_unittest_base._checkfile | ( | self, | |
name | |||
) | [private] |
Definition at line 40 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_test7._check_restfreq(), tests.test_sdtpimaging.sdtpimaging_unittest_base._compare(), tests.test_sdscale.sdscale_unittest_base._compare(), tests.test_sdstat.sdstat_unittest_base._convert_masklist(), tests.test_sdsave.sdsave_unittest_base._get(), tests.test_sdsave.sdsave_storageTest._get_scantable_params(), and tests.test_sdsmooth.sdsmooth_unittest_base._getStats().
def tests.test_sdsave.sdsave_unittest_base._compare | ( | self, | |
filename | |||
) | [private] |
Compare results - check number of rows - check first spectrum
Reimplemented in tests.test_sdsave.sdsave_test5, and tests.test_sdsave.sdsave_test4.
Definition at line 64 of file test_sdsave.py.
References tests.test_sdsave.sdsave_unittest_base._get(), tests.test_sdsave.sdsave_unittest_base.firstSpec, tests.test_sdsave.sdsave_unittest_base.nrow, and asap.asapgrid._SDGridPlotter.nrow.
Referenced by tests.test_sdtpimaging.sdtpimaging_test1.test100(), tests.test_sdsave.sdsave_test1.test100(), tests.test_sdscale.sdscale_test1.test100(), tests.test_sdsave.sdsave_test1.test101(), tests.test_sdscale.sdscale_test1.test101(), tests.test_sdsave.sdsave_test1.test102(), tests.test_sdscale.sdscale_test1.test102(), tests.test_sdsave.sdsave_test1.test103(), tests.test_sdscale.sdscale_test1.test103(), tests.test_sdscale.sdscale_test1.test104(), tests.test_sdscale.sdscale_test1.test105(), tests.test_sdscale.sdscale_test1.test106(), tests.test_sdscale.sdscale_test1.test107(), tests.test_sdtpimaging.sdtpimaging_test2.test200(), tests.test_sdsave.sdsave_test2.test200(), tests.test_sdscale.sdscale_test2.test200(), tests.test_sdsave.sdsave_test2.test201(), tests.test_sdscale.sdscale_test2.test201(), tests.test_sdsave.sdsave_test2.test202(), tests.test_sdsave.sdsave_test2.test203(), tests.test_sdscale.sdscale_test2.test203(), tests.test_sdscale.sdscale_test2.test204(), tests.test_sdscale.sdscale_test2.test205(), tests.test_sdscale.sdscale_test2.test207(), tests.test_sdsave.sdsave_test3.test300(), tests.test_sdscale.sdscale_test3.test300(), tests.test_sdsave.sdsave_test3.test301(), tests.test_sdscale.sdscale_test3.test301(), tests.test_sdsave.sdsave_test3.test302(), tests.test_sdsave.sdsave_test3.test303(), tests.test_sdscale.sdscale_test3.test304(), tests.test_sdscale.sdscale_test3.test305(), tests.test_sdscale.sdscale_test3.test306(), tests.test_sdscale.sdscale_test3.test307(), tests.test_sdsave.sdsave_test4.test400(), tests.test_sdscale.sdscale_test4.test400(), tests.test_sdscale.sdscale_test4.test401(), tests.test_sdscale.sdscale_test4.test404(), tests.test_sdscale.sdscale_test4.test405(), tests.test_sdscale.sdscale_test4.test407(), tests.test_sdsave.sdsave_test5.test500(), tests.test_sdsave.sdsave_test6.test600(), and tests.test_sdsave.sdsave_test6.test601().
def tests.test_sdsave.sdsave_unittest_base._get | ( | self, | |
filename | |||
) | [private] |
Definition at line 80 of file test_sdsave.py.
References tests.test_sdbaseline.sdbaseline_unittest_base._checkfile(), tests.test_sdimprocess.sdimprocess_unittest_base._checkfile(), tests.test_sdmath.sdmath_unittest_base._checkfile(), tests.test_sdcal.sdcal_unittest_base._checkfile(), tests.test_sdsave.sdsave_unittest_base._checkfile(), tests.test_sdimaging.sdimaging_unittest_base._checkfile(), tests.test_sdsave.sdsave_unittest_base.cycleno, asap.asapgrid.asapgrid_base.ifno, tests.test_sdsave.sdsave_unittest_base.ifno, filltsys.SimpleTsysFiller.ifno, asap.asapgrid._SDGridPlotter.ifno, tests.test_sdsave.sdsave_unittest_base.npol, asap.asapgrid._SDGridPlotter.npol, task_sdtpimaging.sdtpimaging_worker.npol, and tests.test_sdsave.sdsave_unittest_base.scanno.
Referenced by tests.test_sdsave.sdsave_unittest_base._compare().
def tests.test_sdsave.sdsave_unittest_base._setAttributes | ( | self | ) | [private] |
Set summary string from the original data.
Definition at line 45 of file test_sdsave.py.
References tests.test_sdsave.sdsave_unittest_base.basefile, tests.test_sdsave.sdsave_unittest_base.cycleno, tests.test_sdsave.sdsave_unittest_base.firstSpec, asap.asapgrid.asapgrid_base.ifno, tests.test_sdsave.sdsave_unittest_base.ifno, filltsys.SimpleTsysFiller.ifno, asap.asapgrid._SDGridPlotter.ifno, tests.test_sdsave.sdsave_unittest_base.nrow, asap.asapgrid._SDGridPlotter.nrow, and tests.test_sdsave.sdsave_unittest_base.scanno.
string tests.test_sdsave.sdsave_unittest_base.basefile [static] |
Definition at line 32 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._setAttributes(), tests.test_sdsave.sdsave_test1.tearDown(), tests.test_sdsave.sdsave_test2.tearDown(), and tests.test_sdsave.sdsave_test3.tearDown().
Definition at line 37 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._get(), and tests.test_sdsave.sdsave_unittest_base._setAttributes().
tuple tests.test_sdsave.sdsave_unittest_base.datapath [static] |
Definition at line 31 of file test_sdsave.py.
Referenced by tests.test_simobserve.simobserve_unittest_base._copy_input(), 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().
Definition at line 34 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._compare(), and tests.test_sdsave.sdsave_unittest_base._setAttributes().
Definition at line 36 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._get(), tests.test_sdsave.sdsave_unittest_base._setAttributes(), and task_sdgrid.sdgrid_worker.execute().
Definition at line 59 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._get(), asap.scantable.scantable._row_callback(), and asap.scantable.scantable.stats().
Definition at line 35 of file test_sdsave.py.
Referenced by asap.linecatalog.linecatalog.__getitem__(), asap.scantable.scantable.__getitem__(), asap.linecatalog.linecatalog.__len__(), asap.scantable.scantable.__len__(), asap.scantable.scantable.__setitem__(), tests.test_sdsave.sdsave_unittest_base._compare(), asap.scantable.scantable._get_column(), asap.scantable.scantable._row_callback(), tests.test_sdsave.sdsave_unittest_base._setAttributes(), asap.scantable.scantable.drop_scan(), asap.scantable.scantable.fft(), asap.scantable.scantable.flag_nans(), asap.scantable.scantable.get_fit(), asap.scantable.scantable.parse_idx_selection(), asap.scantable.scantable.parse_maskexpr(), tests.test_sdbaseline.BlparamFileParser.parseCoeff(), tests.test_sdbaseline.BlparamFileParser.parseRms(), and asap.scantable.scantable.stats().
Reimplemented in tests.test_sdsave.sdsave_test3, and tests.test_sdsave.sdsave_test2.
Definition at line 38 of file test_sdsave.py.
Referenced by tests.test_sdsave.sdsave_unittest_base._get(), and tests.test_sdsave.sdsave_unittest_base._setAttributes().
Definition at line 33 of file test_sdsave.py.
string tests.test_sdsave.sdsave_unittest_base.taskname [static] |
Definition at line 30 of file test_sdsave.py.