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/python_STSelector.cpp

    r939 r1639  
    4141        .def("_settaql", &STSelector::setTaQL)
    4242        .def("_setorder", &STSelector::setSortOrder)
     43        .def("_setrows", &STSelector::setRows)
    4344        .def("_empty", &STSelector::empty)
    4445      ;
Note: See TracChangeset for help on using the changeset viewer.