Ignore:
Timestamp:
09/30/09 17:56:00 (15 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1429)

Ready to Release: Yes

Interface Changes: Yes

What Interface Changed:
A new python method, selector.set_rows(rownrs=[]),
and a cpp function,
STSelector::setRows( const std::vector< int >& rows ),
are added.
The cpp function can be called with selector._setrows()
from python scripts.

Test Programs:

# @casa
s=sd.scantable('ORIGINAL_TABLE_NAME', False)
sel=sd.selector()
rownrs=[1,3,5,7]
sel.set_rows(rownrs)
s.set_selection(sel)
s2=s.copy()
s2.save(name='NEW_TABLE_NAME',format='ASAP',overwrite=True)

Put in Release Notes: Yes

Module(s):

Description:

Data selection by a list of row numbers can be done by
the new method selector.set_rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/src/STSelector.h

    r939 r1639  
    4848
    4949  void setSortOrder(const std::vector<std::string>& order);
     50  void setRows(const std::vector<int>& rows);
    5051
    5152  std::vector<int> getScans() const;
     
    8687  casa::Block<casa::String> order_;
    8788  std::string taql_;
     89  std::vector<int> rowselection_;
    8890};
    8991
Note: See TracChangeset for help on using the changeset viewer.