casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Static Public Attributes | Private Member Functions
tests.test_sdstat.sdstat_unittest_base Class Reference
Inheritance diagram for tests.test_sdstat.sdstat_unittest_base:
tests.test_sdstat.sdstat_basicTest tests.test_sdstat.sdstat_exceptions tests.test_sdstat.sdstat_restfreqTest tests.test_sdstat.sdstat_storageTest

List of all members.

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

Detailed Description

Base class for sdstat unit test

Definition at line 16 of file test_sdstat.py.


Member Function Documentation

def tests.test_sdstat.sdstat_unittest_base._checkfile (   self,
  name 
) [private]
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]
def tests.test_sdstat.sdstat_unittest_base._get_elements (   self,
  fulllist,
  elems = None 
) [private]
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().


Member Data Documentation

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().

Reimplemented in tests.test_sdstat.sdstat_exceptions.

Definition at line 23 of file test_sdstat.py.


The documentation for this class was generated from the following file: