casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Public Member Functions
tests.test_imval.imval_test Class Reference

NAME: input_test. More...

List of all members.

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

Detailed Description

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.


Member Function Documentation

Definition at line 173 of file test_imval.py.

Definition at line 181 of file test_imval.py.

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.

  • This could be done in a loop, or some of it pulled out to a separate method instead of repeating code!
    Imval: array values

Definition at line 766 of file test_imval.py.

References tests.test_imval.note().

Test returned coordinates CAS-2651

Definition at line 917 of file test_imval.py.

References taskinit.iatool, and irc_cs_task_regression.max.

Imval: Input/output tests

Definition at line 184 of file test_imval.py.

References tests.test_imval.info(), and tests.test_imval.note().

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


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