Ignore:
Timestamp:
11/25/15 15:49:41 (8 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...


Bug fix on index range check. It seems that current code allows index 4. But I think valid index range should be 0 <= index <= 4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STPolCircular.cpp

    r1259 r3080  
    4646    throw(AipsError("You must have 4 circular polarisations to run this function"));
    4747  }
    48   if ( index < 0 || index >4 ) throw(AipsError("LinPol index out of range"));
     48//  if ( index < 0 || index >4 ) throw(AipsError("LinPol index out of range"));
     49  if ( index >= 4 ) throw(AipsError("LinPol index out of range"));
    4950  Vector<Float> out,q,u;
    5051  if ( nspec() == 4) {
Note: See TracChangeset for help on using the changeset viewer.