- Timestamp:
- 11/12/04 13:39:08 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python_SDMemTable.cc
r83 r96 42 42 void python_SDMemTable() { 43 43 class_<SDMemTableWrapper>("sdtable") 44 .def( init <> () )44 //.def( init <> () ) 45 45 .def( init < std::string > () ) 46 .def( init < SDMemTableWrapper, std::string > () ) 46 .def( init < const SDMemTableWrapper& > () ) 47 .def( init < const SDMemTableWrapper&, std::string > () ) 48 .def("_copy", &SDMemTableWrapper::copy) 47 49 .def("getscan", &SDMemTableWrapper::getScan) 48 50 .def("getsource", &SDMemTableWrapper::getSource) 49 51 .def("getspectrum", &SDMemTableWrapper::getSpectrum, 50 52 (boost::python::arg("whichRow")=0) ) 51 53 .def("getabscissa", &SDMemTableWrapper::getAbscissa, 52 53 54 55 54 (boost::python::arg("whichRow")=0, 55 boost::python::arg("unit")=std::string("GHz"), 56 boost::python::arg("frame")=std::string("TOPO"), 57 boost::python::arg("restFrequency")=0.0) ) 56 58 .def("getmask", &SDMemTableWrapper::getMask, 57 59 (boost::python::arg("whichRow")=0) ) 58 60 .def("gettsys", &SDMemTableWrapper::getTsys, 59 (boost::python::arg("whichRow")=0) ) 61 (boost::python::arg("whichRow")=0), 62 "Return the TSys at the current location" ) 60 63 .def("getsourcename", &SDMemTableWrapper::getSourceName, 61 64 (boost::python::arg("whichRow")=0) ) 62 65 .def("gettime", &SDMemTableWrapper::getTime, 63 66 (boost::python::arg("whichRow")=0) ) 64 67 .def("getif", &SDMemTableWrapper::getIF) 65 68 .def("getbeam", &SDMemTableWrapper::getBeam) … … 69 72 .def("npol", &SDMemTableWrapper::nPol) 70 73 .def("nchan", &SDMemTableWrapper::nChan) 71 .def("nscans", &SDMemTableWrapper::nScans) 72 74 .def("nscan", &SDMemTableWrapper::nScan) 75 .def("nrow", &SDMemTableWrapper::nRow) 76 .def("setspectrum",&SDMemTableWrapper::setSpectrum, 77 (boost::python::arg("whichRow")=0) ) 73 78 .def("setif", &SDMemTableWrapper::setIF, 74 79 (boost::python::arg("whichIF")=0) ) 75 80 .def("setbeam", &SDMemTableWrapper::setBeam) 76 81 .def("setpol", &SDMemTableWrapper::setPol) 77 82 .def("setmask", &SDMemTableWrapper::setMask) 78 .def("makepersistent", &SDMemTableWrapper::makePersistent) 83 .def("_flag", &SDMemTableWrapper::flag, 84 (boost::python::arg("whichRow")=-1) ) 85 .def("save", &SDMemTableWrapper::makePersistent) 79 86 .def("summary", &SDMemTableWrapper::summary) 87 .def("setrestfreqs", &SDMemTableWrapper::setRestFreqs) 80 88 ; 81 89 };
Note:
See TracChangeset
for help on using the changeset viewer.