Ignore:
Timestamp:
01/10/13 20:37:28 (11 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-4141)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: moved various set methods in python to c++

Test Programs:

Put in Release Notes: No

Module(s): sbseparator

Description:

Moved set methods in sbseparator module to c++ (STSideBandSep class).
Defined boost python interface methods, set_freq, set_dirtol, set_shift,
set_limit, solve_both, subtract_other to access them from python codes.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_STSideBandSep.cpp

    r2712 r2726  
    1010#include <boost/python/args.hpp>
    1111
    12 
    1312#include "STSideBandSep.h"
    1413
     
    2120  class_<STSideBandSep>("SBSeparator")
    2221    .def( init <> () )
     22    .def( init < const std::vector<std::string> > () )
     23    .def( init < const std::vector<ScantableWrapper> > () )
    2324    .def( "set_freq", &STSideBandSep::setFrequency,
    2425          (boost::python::arg("frame")="") )
     26    .def( "set_dirtol", &STSideBandSep::setDirTolerance )
     27    .def( "set_shift", &STSideBandSep::setShift )
     28    .def( "set_limit", &STSideBandSep::setThreshold )
     29    .def( "solve_both", &STSideBandSep::solveBoth )
     30    .def( "subtract_other", &STSideBandSep::solvefromOther )
    2531    .def( "set_lo1", &STSideBandSep::setLO1,
    2632          (boost::python::arg("frame")="TOPO",
Note: See TracChangeset for help on using the changeset viewer.