source: trunk/src/python_asap.cpp@ 3141

Last change on this file since 3141 was 3106, checked in by Takeshi Nakazato, 8 years ago

New Development: No

JIRA Issue: No

Ready for Test: Yes/No

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...


Check-in asap modifications from Jim regarding casacore namespace conversion.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.6 KB
Line 
1//#---------------------------------------------------------------------------
2//# python_asap.cc: python module for single dish package asap
3//#---------------------------------------------------------------------------
4//# Copyright (C) 2004-2012
5//# ATNF
6//#
7//# This program is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU General Public License as published by the Free
9//# Software Foundation; either version 2 of the License, or (at your option)
10//# any later version.
11//#
12//# This program is distributed in the hope that it will be useful, but
13//# WITHOUT ANY WARRANTY; without even the implied warranty of
14//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15//# Public License for more details.
16//#
17//# You should have received a copy of the GNU General Public License along
18//# with this program; if not, write to the Free Software Foundation, Inc.,
19//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning this software should be addressed as follows:
22//# Internet email: Malte.Marquarding@csiro.au
23//# Postal address: Malte Marquarding,
24//# Australia Telescope National Facility,
25//# P.O. Box 76,
26//# Epping, NSW, 2121,
27//# AUSTRALIA
28//#
29//# $Id: python_asap.cpp 3106 2016-10-04 07:20:50Z TakeshiNakazato $
30//#---------------------------------------------------------------------------
31
32#include <boost/python.hpp>
33#include <boost/python/exception_translator.hpp>
34
35#include <string>
36#include <vector>
37
38#include <casa/aips.h>
39#include <casa/Exceptions/Error.h>
40#include "ScantableWrapper.h"
41
42#include <casacore/python/Converters/PycExcp.h>
43#include <casacore/python/Converters/PycBasicData.h>
44#include <casacore/python/Converters/PycValueHolder.h>
45#include <casacore/python/Converters/PycRecord.h>
46
47
48#include "python_asap.h"
49
50namespace asap {
51 namespace python {
52
53void translate_ex(const casacore::AipsError& e)
54{
55 // Use the Python 'C' API to set up an exception object
56 PyErr_SetString(PyExc_RuntimeError, e.what());
57}
58
59 }
60}
61
62using namespace boost::python;
63
64BOOST_PYTHON_MODULE(_asap) {
65#ifdef ENABLE_PLOTTER2
66 asap::python::python_Plotter2();
67#endif //ENABLE_PLOTTER2
68 asap::python::python_Scantable();
69 asap::python::python_STFiller();
70 asap::python::python_Filler();
71 asap::python::python_MSFiller();
72 asap::python::python_STSelector();
73 asap::python::python_STMath();
74 asap::python::python_Fitter();
75 asap::python::python_STLineFinder();
76 asap::python::python_STFitEntry();
77 asap::python::python_STWriter();
78 asap::python::python_MSWriter();
79 asap::python::python_LineCatalog();
80 asap::python::python_LogSink();
81 asap::python::python_STCoordinate();
82 asap::python::python_STAtmosphere();
83 asap::python::python_SrcType();
84 asap::python::python_STGrid();
85 asap::python::python_Iterator();
86 asap::python::python_EdgeMarker();
87 asap::python::python_PlotHelper();
88 asap::python::python_STSideBandSep();
89 asap::python::python_CalibrationManager();
90
91 casacore::python::register_convert_excp();
92 casacore::python::register_convert_basicdata();
93 casacore::python::register_convert_std_vector<asap::ScantableWrapper>();
94 casacore::python::register_convert_std_vector<int>();
95 casacore::python::register_convert_std_vector<uint>();
96 casacore::python::register_convert_std_vector<float>();
97 casacore::python::register_convert_std_vector<double>();
98 casacore::python::register_convert_std_vector<std::string>();
99 casacore::python::register_convert_std_vector<bool>();
100 casacore::python::register_convert_casa_valueholder();
101 casacore::python::register_convert_casa_record();
102
103}
Note: See TracBrowser for help on using the repository browser.