Changeset 1682 for branches/alma/python
- Timestamp:
- 02/02/10 18:47:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/asapmath.py
r1679 r1682 1060 1060 nrow = scan.nrow() 1061 1061 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()' ) 1064 1069 print_log( 'ERROR' ) 1065 1070 else:
Note:
See TracChangeset
for help on using the changeset viewer.