Changeset 2888


Ignore:
Timestamp:
12/26/13 13:21:30 (10 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-5860)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: Added scantable a method, asap.scantable.._get_root_row_idx(), and underlying c++ functions, ScantableWrapper:::getRootTableRowNumbers() and Scantable:::getRootTableRowNumbers()

Test Programs: TBD

Put in Release Notes: No

Module(s): asap.scantable and CASA task, tsdstat

Description:

Added a scantable method, asap.scantable._get_root_row_idx().
The method returns row indices (uint std::vecotr) in the root table for selected rows of scantable.


Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2883 r2888  
    52305230
    52315231
     5232std::vector<uint> Scantable::getRootTableRowNumbers() const
     5233{
     5234  Vector<uInt> rowIds(table_.rowNumbers());
     5235  vector<uint> res;
     5236  rowIds.tovector(res);
     5237  return res;
     5238}
     5239
     5240
    52325241void Scantable::dropXPol()
    52335242{
  • trunk/src/Scantable.h

    r2831 r2888  
    648648  std::vector<uint> getMoleculeIdColumnData() const;
    649649  void setMoleculeIdColumnData(const std::vector<uint>& molids);
     650
     651  /**
     652   * Get row idx of root table
     653   **/
     654  std::vector<uint> getRootTableRowNumbers() const;
     655
    650656  double calculateModelSelectionCriteria(const std::string& valname,
    651657                                         const std::string& blfunc,
  • trunk/src/ScantableWrapper.h

    r2831 r2888  
    337337  void setMoleculeIdColumnData(const std::vector<uint>& molids)
    338338  { table_->setMoleculeIdColumnData(molids); }
     339
     340  std::vector<uint> getRootTableRowNumbers() const
     341  { return table_->getRootTableRowNumbers(); }
     342
    339343  double calculateModelSelectionCriteria(const std::string& valname, const std::string& blfunc, int order, const std::vector<bool>& inMask, int whichrow, bool useLineFinder, const std::vector<int>& edge, float threshold, int chanAvgLimit)
    340344  { return table_->calculateModelSelectionCriteria(valname, blfunc, order, inMask, whichrow, useLineFinder, edge, threshold, chanAvgLimit); }
  • trunk/src/python_Scantable.cpp

    r2831 r2888  
    169169    .def("_getmolidcol_list", &ScantableWrapper::getMoleculeIdColumnData)
    170170    .def("_setmolidcol_list", &ScantableWrapper::setMoleculeIdColumnData)
     171    .def("_get_root_row_idx", &ScantableWrapper::getRootTableRowNumbers)
    171172    .def("_calc_aic", &ScantableWrapper::calculateModelSelectionCriteria)
    172173    .def("drop_xpol", &ScantableWrapper::dropXPol)
Note: See TracChangeset for help on using the changeset viewer.