Incorrect inputs to parameters. More...
Public Member Functions | |
def | setUp |
def | tearDown |
def | test_input |
Static Public Attributes | |
results | |
Testing REGION parameter Expects a file containing a region record, as created by the viewer. | |
tuple | results |
tuple | fp |
tuple | x1 |
tuple | x2 |
tuple | y1 |
tuple | y2 |
tuple | boxstr |
Incorrect inputs to parameters.
The parameters are: imagename moments axis region box chans stokes mask includepix excludepix outfile
Returns True if successful, and False if it has failed.
Definition at line 216 of file test_immoments.py.
def tests.test_immoments.immoment_test1.setUp | ( | self | ) |
Definition at line 218 of file test_immoments.py.
def tests.test_immoments.immoment_test1.tearDown | ( | self | ) |
Definition at line 229 of file test_immoments.py.
def tests.test_immoments.immoment_test1.test_input | ( | self | ) |
Immoment: Test input/output parameters
Definition at line 236 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.boxstr [static] |
Definition at line 580 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.fp [static] |
Definition at line 480 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.results [static] |
Testing REGION parameter Expects a file containing a region record, as created by the viewer.
Testing outfile parameter Expects a file containing a region record, as created by the viewer.
Testing excludepix parameter: Valid values are a vector of two or 1 float values, indicating a single value or a range of values.
Testing includepix parameter: Valid values are a vector of two or 1 float values, indicating a single value or a range of values.
Testing MASK parameter: There are many, many valid mask values.
Testing STOKES parameter, valid values: 'I' Tests are 'Q', 'yellow' (invalid) and 'I'.
Testing CHANS parameter: valid values 0-17 for our image Values used for testing, -5,-1,0,2~5, 17,18,32.
Testing BOX parameter The input file has pixel values ranging from 0-799, 0-799 Tests include -3, -1, 0, 1 random valid value, 799, 800, 820 for both the x, and y coords.
Tests include bad file name, file with bad content, and good file.
See AIPS++ Note 223 http://www.astron.nl/aips++/docs/notes/223/223.html The test file n1333 has a mask alread, 'mask0' we will use this for testing. Invalid tests: 'blarg', 'n1333_both.image:mask1', 'bad_file:mask0' Valid tests: n1333_both.image:nomask, n133_both.image:mask0, '<0.5'
values in our test image range from -0.04201228 to 0.04867625 Invalid tests: ['bad'] Valid test: [-0.1,0.1], [-6,-5] (this is valid, but creates an array of NaNs)
values in our test image range from -0.04201228 to 0.04867625 Invalid tests: ['badpix'] Valid test: [0.1,-0.1], [6,5] (this is valid, but creates an array of NaNs)
Tests include bad file name (one writing in a read only aread and one rewriting on an existing file., and good file.
_momentTest_debug_msg( 53 )
Definition at line 434 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.results [static] |
Definition at line 435 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.x1 [static] |
Definition at line 576 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.x2 [static] |
Definition at line 577 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.y1 [static] |
Definition at line 578 of file test_immoments.py.
tuple tests.test_immoments.immoment_test1.y2 [static] |
Definition at line 579 of file test_immoments.py.