NAME: input_test. More...
Public Member Functions | |
def | setUp |
def | tearDown |
def | test_input |
def | test_single_point |
NAME: single_point. | |
def | test_array |
NAME: arrays. | |
def | test_coord_return |
NAME: input_test.
SHORT DESCRIPTION: Make sure invalid input is detected.
DESCRIPTION: Test input that is the wrong type, to no values given. We expect lots of exceptions for this test! More precisely a) No imagename given b) Bad imagename given c) Incorrect data type, not a string, to imagename parameter d) Out of range errors for, box, chans, & stokes parameters e) incorrect data type to box, chans, & stokes parameters f) Bad file name to region parameter g) Incorrect data type, not a string, to region parameter h) File name that does not contain a region to the region param.
Definition at line 171 of file test_imval.py.
def tests.test_imval.imval_test.setUp | ( | self | ) |
Definition at line 173 of file test_imval.py.
def tests.test_imval.imval_test.tearDown | ( | self | ) |
Definition at line 181 of file test_imval.py.
def tests.test_imval.imval_test.test_array | ( | self | ) |
NAME: arrays.
SHORT DESCRIPTION: Do tests to find the value at a single point
DESCRIPTION: a) A slice of the directional plane b) Two slices of the directional plane c) A cube RA,Dec,and Spectral axes d) Two cubes RA,Dec,and Spectral axes e) A 4D blob: RA,Dec, Spetral, & Stokes.
Note for the image we are using the axes are: RA, Dec, Stokes, Spectral
TODO - check shape value on spectral value tests d and e.
Imval: array values
Definition at line 766 of file test_imval.py.
References tests.test_imval.note().
def tests.test_imval.imval_test.test_coord_return | ( | self | ) |
Test returned coordinates CAS-2651
Definition at line 917 of file test_imval.py.
References taskinit.iatool, and irc_cs_task_regression.max.
def tests.test_imval.imval_test.test_input | ( | self | ) |
Imval: Input/output tests
Definition at line 184 of file test_imval.py.
References tests.test_imval.info(), and tests.test_imval.note().
def tests.test_imval.imval_test.test_single_point | ( | self | ) |
NAME: single_point.
SHORT DESCRIPTION: Do tests to find the value at a single point
DESCRIPTION: a) Value at bottom-left corner b) Value at bottom-right corner c) Value at top-left corner d) Value at top-right corner e) Value at 3 points within the image.
Imval: Single point tests
Definition at line 510 of file test_imval.py.
References tests.test_imval.note().