Ignore:
Timestamp:
02/02/10 18:47:39 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-1823

Ready to Release: Yes/No?

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.
Supported operation with 1D list with length of 1, and with 2D list with
shape of (1,1) or (1,nchan).


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapmath.py

    r1679 r1682  
    10601060    nrow = scan.nrow()
    10611061    s = None
    1062     if len( value ) != nrow:
    1063         asaplog.push( 'len(value) must conform to scan.nrow()' )
     1062    if len( value ) == 1:
     1063        from asap._asap import stmath
     1064        stm = stmath()
     1065        s = scantable( stm._arrayop( scan.copy(), value[0], mode, tsys ) )
     1066        del stm
     1067    elif len( value ) != nrow:
     1068        asaplog.push( 'len(value) must be 1 or conform to scan.nrow()' )
    10641069        print_log( 'ERROR' )
    10651070    else:
Note: See TracChangeset for help on using the changeset viewer.