Changeset 1003


Ignore:
Timestamp:
04/07/06 10:03:22 (18 years ago)
Author:
mar637
Message:

added column_names()

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/scantable.py

    r1001 r1003  
    347347        """
    348348        return self.stats(stat='stddev',mask=mask);
     349
     350
     351    def column_names(self):
     352        """
     353        Return a  list of column names, which can be used for selection.
     354        """
     355        return list(Scantable.column_names(self))
    349356
    350357    def get_tsys(self):
  • trunk/src/ScantableWrapper.h

    r1000 r1003  
    178178  void calculateAZEL() { table_->calculateAZEL(); };
    179179
     180  std::vector<std::string> columnNames() const
     181    { return table_->columnNames(); }
     182
    180183private:
    181184  casa::CountedPtr<Scantable> table_;
  • trunk/src/python_Scantable.cpp

    r1000 r1003  
    7171         (arg("whichrow")=0, arg("poltype")=std::string("")) )
    7272    .def("poltype", &ScantableWrapper::getPolType )
     73    .def("column_names", &ScantableWrapper::columnNames)
    7374    .def("_getpollabel", &ScantableWrapper::getPolarizationLabel)
    7475    .def("_setspectrum",&ScantableWrapper::setSpectrum,
Note: See TracChangeset for help on using the changeset viewer.