Changeset 157


Ignore:
Timestamp:
12/26/04 21:45:06 (19 years ago)
Author:
kil064
Message:

function 'get_tsys' now returns a vector looping over all rows
in table

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTableWrapper.h

    r138 r157  
    8383  }
    8484
    85   float getTsys(int whichRow=0) {return table_->getTsys(whichRow);}
     85  std::vector<float> getTsys() {
     86     int nRow = table_->nRow();
     87     std::vector<float> result(nRow);
     88     for (uint i=0; i<nRow; i++) {
     89        result[i] = table_->getTsys(i);
     90     }
     91     return result;
     92  }
     93
    8694  std::string getTime(int whichRow=0) {return table_->getTime(whichRow);}
    8795
  • trunk/src/python_SDMemTable.cc

    r125 r157  
    5858    .def("getmask", &SDMemTableWrapper::getMask,
    5959         (boost::python::arg("whichRow")=0) )
    60     .def("_gettsys", &SDMemTableWrapper::getTsys,
    61          (boost::python::arg("whichRow")=0),
    62          "Return the TSys at the current location" )
     60    .def("_gettsys", &SDMemTableWrapper::getTsys)
    6361    .def("_getsourcename", &SDMemTableWrapper::getSourceName,
    6462         (boost::python::arg("whichRow")=0) )
Note: See TracChangeset for help on using the changeset viewer.