Changeset 96


Ignore:
Timestamp:
11/12/04 13:39:08 (20 years ago)
Author:
mar637
Message:

disbaled default constructor
added copy function
naming changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_SDMemTable.cc

    r83 r96  
    4242void python_SDMemTable() {
    4343  class_<SDMemTableWrapper>("sdtable")
    44     .def( init <> () )
     44    //.def( init <> () )
    4545    .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)
    4749    .def("getscan", &SDMemTableWrapper::getScan)
    4850    .def("getsource", &SDMemTableWrapper::getSource)
    4951    .def("getspectrum", &SDMemTableWrapper::getSpectrum,
    50         (boost::python::arg("whichRow")=0) )
     52        (boost::python::arg("whichRow")=0) )
    5153    .def("getabscissa", &SDMemTableWrapper::getAbscissa,
    52         (boost::python::arg("whichRow")=0,
    53           boost::python::arg("unit")=std::string("GHz"),
    54           boost::python::arg("frame")=std::string("TOPO"),
    55           boost::python::arg("restFrequency")=0.0) )
     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) )
    5658    .def("getmask", &SDMemTableWrapper::getMask,
    57         (boost::python::arg("whichRow")=0) )
     59        (boost::python::arg("whichRow")=0) )
    5860    .def("gettsys", &SDMemTableWrapper::getTsys,
    59          (boost::python::arg("whichRow")=0) )
     61         (boost::python::arg("whichRow")=0),
     62         "Return the TSys at the current location" )
    6063    .def("getsourcename", &SDMemTableWrapper::getSourceName,
    61         (boost::python::arg("whichRow")=0) )
     64        (boost::python::arg("whichRow")=0) )
    6265    .def("gettime", &SDMemTableWrapper::getTime,
    63         (boost::python::arg("whichRow")=0) )
     66        (boost::python::arg("whichRow")=0) )
    6467    .def("getif", &SDMemTableWrapper::getIF)
    6568    .def("getbeam", &SDMemTableWrapper::getBeam)
     
    6972    .def("npol", &SDMemTableWrapper::nPol)
    7073    .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) )
    7378    .def("setif", &SDMemTableWrapper::setIF,
    74         (boost::python::arg("whichIF")=0) )
     79        (boost::python::arg("whichIF")=0) )
    7580    .def("setbeam", &SDMemTableWrapper::setBeam)
    7681    .def("setpol", &SDMemTableWrapper::setPol)
    7782    .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)
    7986    .def("summary",  &SDMemTableWrapper::summary)
     87    .def("setrestfreqs",  &SDMemTableWrapper::setRestFreqs)
    8088  ;
    8189};
Note: See TracChangeset for help on using the changeset viewer.