[2742] | 1 | //#---------------------------------------------------------------------------
|
---|
| 2 | //# python_CalibrationManager.cc: python exposure of c++ calibration classes
|
---|
| 3 | //#---------------------------------------------------------------------------
|
---|
| 4 | #include <boost/python.hpp>
|
---|
| 5 | #include <boost/python/args.hpp>
|
---|
| 6 |
|
---|
| 7 | #include <string>
|
---|
| 8 | #include <vector>
|
---|
| 9 |
|
---|
| 10 | #include "CalibrationManager.h"
|
---|
| 11 | #include "ScantableWrapper.h"
|
---|
| 12 |
|
---|
| 13 | using namespace boost::python;
|
---|
| 14 |
|
---|
| 15 | namespace asap {
|
---|
| 16 | namespace python {
|
---|
| 17 |
|
---|
| 18 | void python_CalibrationManager() {
|
---|
| 19 | class_<CalibrationManager>("_calmanager")
|
---|
| 20 | .def( init <> () )
|
---|
| 21 | .def("set_data", &CalibrationManager::setScantable)
|
---|
| 22 | .def("set_data", &CalibrationManager::setScantableByName)
|
---|
| 23 | .def("add_skytable", &CalibrationManager::addSkyTable)
|
---|
| 24 | .def("add_tsystable", &CalibrationManager::addTsysTable)
|
---|
| 25 | .def("set_calmode", &CalibrationManager::setMode)
|
---|
| 26 | .def("set_time_interpolation", &CalibrationManager::setTimeInterpolation,
|
---|
| 27 | (boost::python::arg("interp"),
|
---|
| 28 | boost::python::arg("order")=-1))
|
---|
| 29 | .def("set_freq_interpolation", &CalibrationManager::setFrequencyInterpolation,
|
---|
| 30 | (boost::python::arg("interp"),
|
---|
| 31 | boost::python::arg("order")=-1))
|
---|
| 32 | .def("reset", &CalibrationManager::reset)
|
---|
| 33 | .def("set_tsys_spw", &CalibrationManager::setTsysSpw)
|
---|
| 34 | .def("set_tsys_transfer", &CalibrationManager::setTsysTransfer)
|
---|
| 35 | .def("calibrate", &CalibrationManager::calibrate)
|
---|
| 36 | .def("apply", &CalibrationManager::apply)
|
---|
| 37 | .def("save_caltable", &CalibrationManager::saveCaltable)
|
---|
| 38 | .def("split", &CalibrationManager::split)
|
---|
| 39 | ;
|
---|
| 40 |
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | } // python
|
---|
| 44 | } // asap
|
---|