Changeset 2341


Ignore:
Timestamp:
10/18/11 16:18:53 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No/Yes (ATNF-251)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: unit tests for the task sdscale (in CASA)

Put in Release Notes: No

Module(s):

Description: use the copy constructor of STSelector instead of sum to create a new selector object in asapmath._array2dOp. I believe this is the way to go.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapmath.py

    r2336 r2341  
    10421042        stm._setinsitu( True )
    10431043        basesel = s.get_selection()
    1044         # Make sure basesel comes first to create a new selector instance
    1045         sel = basesel+selector()
     1044        # generate a new selector object based on basesel
     1045        sel = selector(basesel)
    10461046        for irow in range( nrow ):
    10471047            sel.set_rows( irow )
Note: See TracChangeset for help on using the changeset viewer.