casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Functions | Variables
stokesimagingtest_regression Namespace Reference

Functions

def makeMS
 BEGIN : Helper function definition (tests are run after 'END') ####.
def runstokes
 Run clean.
def checkoutput
 Check output images.
def convertToStokes
 Convert IQUV to all stokes dictionary.
def doAllChecks
 Run a bunch of tests -- try all combinations allowed at the clean task level.

Variables

tuple datestring
string outfile
tuple logfile
tuple pathname
 END : Helper function definition ####.
 regstate
tuple startTime
tuple startProc
string parentpath
list stokesvals
tuple resultlist
tuple endProc
tuple endTime
tuple truestokes
int countpass
int countfail
int countwrongnumbers
int totalcount
list slist
 stat
int true_totalcount
int true_countpass
int true_countfail
int true_countwrongnumbers

Function Documentation

def stokesimagingtest_regression.checkoutput (   msname = 'Point/point_linXY.ms',
  imname = 'sctest',
  stokes = 'IQ' 
)

Check output images.

Definition at line 173 of file stokesimagingtest_regression.py.

Referenced by runstokes().

Convert IQUV to all stokes dictionary.

Definition at line 200 of file stokesimagingtest_regression.py.

def stokesimagingtest_regression.doAllChecks (   stokesvals = [],
  parentpath = '.' 
)

Run a bunch of tests -- try all combinations allowed at the clean task level.

I, IV, IQ, QU, UV, IQUV, RR, LL, RRLL, XX,YY, XXYY

Definition at line 221 of file stokesimagingtest_regression.py.

References makeMS(), and runstokes().

def stokesimagingtest_regression.makeMS (   choice = 'RL_all',
  stokesvals = [1.0,
  parentpath = '.' 
)

BEGIN : Helper function definition (tests are run after 'END') ####.

Simulate a small MS

Definition at line 43 of file stokesimagingtest_regression.py.

References irc_cs_task_regression.sum.

Referenced by doAllChecks().

def stokesimagingtest_regression.runstokes (   msname = "Point/point_linXY.ms",
  imname = 'sctest',
  stokes = 'IQ' 
)

Run clean.

Definition at line 153 of file stokesimagingtest_regression.py.

References checkoutput().

Referenced by doAllChecks().


Variable Documentation

Definition at line 277 of file stokesimagingtest_regression.py.

Definition at line 276 of file stokesimagingtest_regression.py.

Definition at line 278 of file stokesimagingtest_regression.py.

Definition at line 32 of file stokesimagingtest_regression.py.

Definition at line 266 of file stokesimagingtest_regression.py.

Definition at line 267 of file stokesimagingtest_regression.py.

Definition at line 34 of file stokesimagingtest_regression.py.

Definition at line 33 of file stokesimagingtest_regression.py.

Definition at line 261 of file stokesimagingtest_regression.py.

END : Helper function definition ####.

Now, run the tests.

Definition at line 251 of file stokesimagingtest_regression.py.

Definition at line 254 of file stokesimagingtest_regression.py.

Definition at line 263 of file stokesimagingtest_regression.py.

Definition at line 281 of file stokesimagingtest_regression.py.

Definition at line 258 of file stokesimagingtest_regression.py.

Definition at line 257 of file stokesimagingtest_regression.py.

Definition at line 286 of file stokesimagingtest_regression.py.

Definition at line 262 of file stokesimagingtest_regression.py.

Definition at line 279 of file stokesimagingtest_regression.py.

Definition at line 304 of file stokesimagingtest_regression.py.

Definition at line 303 of file stokesimagingtest_regression.py.

Definition at line 305 of file stokesimagingtest_regression.py.

Definition at line 302 of file stokesimagingtest_regression.py.

Definition at line 274 of file stokesimagingtest_regression.py.