Ignore:
Timestamp:
03/10/06 12:09:29 (18 years ago)
Author:
mar637
Message:

enable polarimetry in asap2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_Scantable.cpp

    r884 r896  
    6363    .def("_setInstrument", &ScantableWrapper::setInstrument)
    6464    .def("_getspectrum", &ScantableWrapper::getSpectrum,
    65          (boost::python::arg("whichrow")=0))
    66     /*
    67     .def("nstokes", &ScantableWrapper::nStokes)
    68     .def("_getstokesspectrum", &ScantableWrapper::getStokesSpectrum,
    69          (boost::python::arg("whichrow")=0),
    70          (boost::python::arg("linpol")=false) )
    71     .def("_stokestopolspectrum", &ScantableWrapper::stokesToPolSpectrum,
    72          (boost::python::arg("whichrow")=0),
    73          (boost::python::arg("linear")=false),
    74          (boost::python::arg("thepol")=-1) )
    75     */
     65         (arg("whichrow")=0, arg("poltype")=std::string("linear")) )
     66    .def("poltype", &ScantableWrapper::getPolType )
    7667    .def("_getpolarizationlabel", &ScantableWrapper::getPolarizationLabel,
    77          (boost::python::arg("linear")=false),
    78          (boost::python::arg("stokes")=false),
    79          (boost::python::arg("linpol")=false) )
    80 //         (boost::python::arg("thepol")=0) )        // Boost fails with 4 arguments
    81    .def("_setspectrum",&ScantableWrapper::setSpectrum,
     68         ( arg("linear")=false, arg("stokes")=false,
     69           arg("linpol")=false, arg("thepol")=0 ) )
     70    .def("_setspectrum",&ScantableWrapper::setSpectrum,
    8271         (boost::python::arg("whichrow")=0) )
    8372    .def("_getabcissa", &ScantableWrapper::getAbcissa,
Note: See TracChangeset for help on using the changeset viewer.