source: branches/plotter2/src/python_STSideBandSep.cpp@ 3072

Last change on this file since 3072 was 2794, checked in by Kana Sugimoto, 12 years ago

New Development: Yes

JIRA Issue: Yes (CAS-4141/TRAC-290)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sbseparator module

Description: Pushed python codes down to cpp.


File size: 1.6 KB
Line 
1//#---------------------------------------------------------------------------
2//# python_STSideBandSep.cpp: python exposure of c++ STSideBandSep class
3//#---------------------------------------------------------------------------
4//# Author: Kanako Sugimoto, (C) 2012
5//#
6//# Copyright: See COPYING file that comes with this distribution
7//#
8//#---------------------------------------------------------------------------
9#include <boost/python.hpp>
10#include <boost/python/args.hpp>
11
12#include "STSideBandSep.h"
13
14using namespace boost::python;
15
16namespace asap {
17 namespace python {
18
19void python_STSideBandSep() {
20 class_<STSideBandSep>("SBSeparator")
21 .def( init <> () )
22 .def( init < const std::vector<std::string> > () )
23 .def( init < const std::vector<ScantableWrapper> > () )
24 .def( "set_freq", &STSideBandSep::setFrequency,
25 (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 )
31 .def( "set_lo1", &STSideBandSep::setLO1,
32 (boost::python::arg("frame")="TOPO",
33 boost::python::arg("reftime")=-1,
34 boost::python::arg("refdir")="") )
35 .def( "set_lo1root", &STSideBandSep::setLO1Root )
36 .def( "separate", &STSideBandSep::separate )
37 //// temporal methods
38 //.def( "_cpprfft", &STSideBandSep::cpprfft )
39 //.def( "solve_imgfreq", &STSideBandSep::solveImageFreqency )
40 //.def( "_get_asistb_from_scantb", &STSideBandSep::setScanTb0 )
41 ;
42};
43
44 } // python
45} // asap
Note: See TracBrowser for help on using the repository browser.