source: trunk/src/python_asap.cpp @ 3029

Last change on this file since 3029 was 3029, checked in by Kana Sugimoto, 9 years ago

New Development: Yes

JIRA Issue: Yes (CAS-6929)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap as a whole

Description: committing Darrell's changes to make asap work with merged casacore.


  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 24.3 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 3029 2015-03-03 07:26:31Z KanaSugimoto $
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#ifndef HAVE_LIBPYRAP
43  #include "pyconversions.h"
44#else
45  #include <pyrap/Converters/PycExcp.h>
46  #include <pyrap/Converters/PycBasicData.h>
47  #include <pyrap/Converters/PycValueHolder.h>
48  #include <pyrap/Converters/PycRecord.h>
49#endif
50
51#include "python_asap.h"
52
53#ifndef HAVE_LIBPYRAP
54namespace asap {
55  namespace python {
56
57void translate_ex(const casa::AipsError& e)
58{
59  // Use the Python 'C' API to set up an exception object
60  PyErr_SetString(PyExc_RuntimeError, e.what());
61}
62
63  }
64}
65#endif
66
67using namespace boost::python;
68
69BOOST_PYTHON_MODULE(_asap) {
70#ifdef ENABLE_PLOTTER2
71  asap::python::python_Plotter2();
72#endif //ENABLE_PLOTTER2
73  asap::python::python_Scantable();
74  asap::python::python_STFiller();
75  asap::python::python_Filler();
76  asap::python::python_MSFiller();
77  asap::python::python_STSelector();
78  asap::python::python_STMath();
79  asap::python::python_Fitter();
80  asap::python::python_STLineFinder();
81  asap::python::python_STFitEntry();
82  asap::python::python_STWriter();
83  asap::python::python_MSWriter();
84  asap::python::python_LineCatalog();
85  asap::python::python_LogSink();
86  asap::python::python_STCoordinate();
87  asap::python::python_STAtmosphere();
88  asap::python::python_SrcType();
89  asap::python::python_STGrid();
90  asap::python::python_Iterator();
91  asap::python::python_EdgeMarker();
92  asap::python::python_PlotHelper();
93  asap::python::python_STSideBandSep();
94  asap::python::python_CalibrationManager();
95
96#ifndef HAVE_LIBPYRAP
97  // Use built-in pyconversions.h
98  register_exception_translator<casa::AipsError>(&asap::python::translate_ex);
99  from_python_sequence < std::vector< asap::ScantableWrapper >,
100    variable_capacity_policy > ();
101  std_vector_to_tuple < int > ();
102  from_python_sequence < std::vector < int >,
103    variable_capacity_policy > ();
104  std_vector_to_tuple < uint > ();
105  from_python_sequence < std::vector < uint >,
106    variable_capacity_policy > ();
107  std_vector_to_tuple < float > ();
108  from_python_sequence < std::vector < float >,
109    variable_capacity_policy > ();
110  std_vector_to_tuple < double > ();
111  from_python_sequence < std::vector < double >,
112    variable_capacity_policy > ();
113  std_vector_to_tuple < std::string > ();
114  from_python_sequence < std::vector < std::string >,
115    variable_capacity_policy > ();
116  std_vector_to_tuple < bool> ();
117  from_python_sequence < std::vector < bool >,
118    variable_capacity_policy > ();
119#else
120  casa::pyrap::register_convert_excp();
121  casa::pyrap::register_convert_basicdata();
122  casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>();
123  casa::pyrap::register_convert_std_vector<int>();
124  casa::pyrap::register_convert_std_vector<uint>();
125  casa::pyrap::register_convert_std_vector<float>();
126  casa::pyrap::register_convert_std_vector<double>();
127  casa::pyrap::register_convert_std_vector<std::string>();
128//////////////see error below//////////////////////////////
129  casa::pyrap::register_convert_std_vector<bool>();
130///////////////////////////////////////////////////////////
131  casa::pyrap::register_convert_casa_valueholder();
132  casa::pyrap::register_convert_casa_record();
133
134#endif
135}
136//[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o
137//cd ...trunk/asap/build/src && /usr/bin/clang++   -DAIPS_AUTO_STL -DAIPS_DEBUG -DAIPS_STDLIB -DCASACORE_NEEDS_RETHROW -DCASA_USECASAPATH -DENABLE_PLOTTER2 -DHAVE_LIBPYRAP -DNOPKSMS -DUSE_CASAPY -DWITHOUT_ACS -D_GNU_SOURCE -D_asap_EXPORTS -pipe -Wall -Wextra -Wno-non-template-friend -Wcast-align -Wno-comment -ggdb3 -O0 -fno-omit-frame-pointer -fPIC -I...trunk/darwin/include/casacore -I...trunk/darwin/include/casacore/.. -I/opt/casa/01/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I...trunk/asap/src -I...trunk/asap/external-alma -I...trunk/asap/external/libpyrap/pyrap-0.3.2    -o CMakeFiles/_asap.dir/python_asap.cpp.o -c ...trunk/asap/src/python_asap.cpp
138//warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option]
139//In file included from ...trunk/asap/src/python_asap.cpp:32:
140//In file included from /opt/casa/01/include/boost/python.hpp:29:
141//In file included from /opt/casa/01/include/boost/python/exec.hpp:9:
142///opt/casa/01/include/boost/python/str.hpp:185:57: warning: unused parameter 'end' [-Wunused-parameter]
143//    long count(T1 const& sub,T2 const& start, T3 const& end) const
144//                                                        ^
145//In file included from ...trunk/asap/src/python_asap.cpp:32:
146//In file included from /opt/casa/01/include/boost/python.hpp:49:
147///opt/casa/01/include/boost/python/opaque_pointer_converter.hpp:172:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers]
148//};
149//^
150//In file included from ...trunk/asap/src/python_asap.cpp:32:
151//In file included from /opt/casa/01/include/boost/python.hpp:52:
152//In file included from /opt/casa/01/include/boost/python/overloads.hpp:11:
153///opt/casa/01/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter]
154//      , keyword_range const& kw // ignored
155//                             ^
156//In file included from ...trunk/asap/src/python_asap.cpp:46:
157//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:95:9: warning: cast from
158//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'boost::python::converter::rvalue_from_python_storage<String> *' increases required alignment
159//      from 8 to 16 [-Wcast-align]
160//        (boost::python::converter::rvalue_from_python_storage<String>*)
161//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
162//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
163//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<asap::ScantableWrapper,
164//      std::__1::allocator<asap::ScantableWrapper> > > *' increases required alignment from 8 to 16 [-Wcast-align]
165//        (rvalue_from_python_storage<ContainerType>*)
166//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
167//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
168//      'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,
169//      casa::pyrap::stl_variable_capacity_policy>::construct' requested here
170//        &construct,
171//         ^
172//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
173//      'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,
174//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
175//        from_python_sequence < std::vector < T >,
176//        ^
177//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
178//      'casa::pyrap::convert_std_vector<asap::ScantableWrapper>::reg' requested here
179//    { convert_std_vector<T>::reg(); }
180//                             ^
181//...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization
182//      'casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>' requested here
183//  casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>();
184//               ^
185//In file included from ...trunk/asap/src/python_asap.cpp:46:
186//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
187//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<int, std::__1::allocator<int> > > *' increases
188//      required alignment from 8 to 16 [-Wcast-align]
189//        (rvalue_from_python_storage<ContainerType>*)
190//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
192//      'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
193//        &construct,
194//         ^
195//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
196//      'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
197//      requested here
198//        from_python_sequence < std::vector < T >,
199//        ^
200//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
201//      'casa::pyrap::convert_std_vector<int>::reg' requested here
202//    { convert_std_vector<T>::reg(); }
203//                             ^
204//...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization
205//      'casa::pyrap::register_convert_std_vector<int>' requested here
206//  casa::pyrap::register_convert_std_vector<int>();
207//               ^
208//In file included from ...trunk/asap/src/python_asap.cpp:46:
209//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
210//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >
211//      > *' increases required alignment from 8 to 16 [-Wcast-align]
212//        (rvalue_from_python_storage<ContainerType>*)
213//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
214//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
215//      'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, casa::pyrap::stl_variable_capacity_policy>::construct'
216//      requested here
217//        &construct,
218//         ^
219//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
220//      'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >,
221//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
222//        from_python_sequence < std::vector < T >,
223//        ^
224//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
225//      'casa::pyrap::convert_std_vector<unsigned int>::reg' requested here
226//    { convert_std_vector<T>::reg(); }
227//                             ^
228//...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization
229//      'casa::pyrap::register_convert_std_vector<unsigned int>' requested here
230//  casa::pyrap::register_convert_std_vector<uint>();
231//               ^
232//In file included from ...trunk/asap/src/python_asap.cpp:46:
233//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
234//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<float, std::__1::allocator<float> > > *'
235//      increases required alignment from 8 to 16 [-Wcast-align]
236//        (rvalue_from_python_storage<ContainerType>*)
237//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
238//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
239//      'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
240//        &construct,
241//         ^
242//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
243//      'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
244//      requested here
245//        from_python_sequence < std::vector < T >,
246//        ^
247//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
248//      'casa::pyrap::convert_std_vector<float>::reg' requested here
249//    { convert_std_vector<T>::reg(); }
250//                             ^
251//...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization
252//      'casa::pyrap::register_convert_std_vector<float>' requested here
253//  casa::pyrap::register_convert_std_vector<float>();
254//               ^
255//In file included from ...trunk/asap/src/python_asap.cpp:46:
256//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
257//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<double, std::__1::allocator<double> > > *'
258//      increases required alignment from 8 to 16 [-Wcast-align]
259//        (rvalue_from_python_storage<ContainerType>*)
260//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
261//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
262//      'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested
263//      here
264//        &construct,
265//         ^
266//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
267//      'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
268//      requested here
269//        from_python_sequence < std::vector < T >,
270//        ^
271//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
272//      'casa::pyrap::convert_std_vector<double>::reg' requested here
273//    { convert_std_vector<T>::reg(); }
274//                             ^
275//...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization
276//      'casa::pyrap::register_convert_std_vector<double>' requested here
277//  casa::pyrap::register_convert_std_vector<double>();
278//               ^
279//In file included from ...trunk/asap/src/python_asap.cpp:46:
280//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
281//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<std::__1::basic_string<char>,
282//      std::__1::allocator<std::__1::basic_string<char> > > > *' increases required alignment from 8 to 16 [-Wcast-align]
283//        (rvalue_from_python_storage<ContainerType>*)
284//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
286//      'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,
287//      casa::pyrap::stl_variable_capacity_policy>::construct' requested here
288//        &construct,
289//         ^
290//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
291//      'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,
292//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
293//        from_python_sequence < std::vector < T >,
294//        ^
295//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
296//      'casa::pyrap::convert_std_vector<std::__1::basic_string<char> >::reg' requested here
297//    { convert_std_vector<T>::reg(); }
298//                             ^
299//...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization
300//      'casa::pyrap::register_convert_std_vector<std::__1::basic_string<char> >' requested here
301//  casa::pyrap::register_convert_std_vector<std::string>();
302//               ^
303//In file included from ...trunk/asap/src/python_asap.cpp:32:
304//In file included from /opt/casa/01/include/boost/python.hpp:11:
305//In file included from /opt/casa/01/include/boost/python/args.hpp:25:
306//In file included from /opt/casa/01/include/boost/python/object_core.hpp:14:
307//In file included from /opt/casa/01/include/boost/python/call.hpp:15:
308///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:209:9: error: no matching constructor for initialization of
309//      'boost::python::converter::detail::arg_to_python_base'
310//      : arg_to_python_base(&x, registered<T>::converters)
311//        ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
312///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:256:7: note: in instantiation of member function
313//      'boost::python::converter::detail::value_arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >
314//      >::value_arg_to_python' requested here
315//    : base(x)
316//      ^
317///opt/casa/01/include/boost/python/object_core.hpp:393:33: note: in instantiation of member function
318//      'boost::python::converter::arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >::arg_to_python' requested here
319//          return python::incref(converter::arg_to_python<T>(x).get());
320//                                ^
321///opt/casa/01/include/boost/python/object_core.hpp:312:10: note: in instantiation of function template specialization
322//      'boost::python::api::object_initializer_impl<false, false>::get<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >'
323//      requested here
324//      >::get(
325//         ^
326///opt/casa/01/include/boost/python/object_core.hpp:334:23: note: in instantiation of function template specialization
327//      'boost::python::api::object_base_initializer<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here
328//        : object_base(object_base_initializer(x))
329//                      ^
330///opt/casa/01/include/boost/python/list.hpp:72:22: note: in instantiation of function template specialization
331//      'boost::python::api::object::object<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here
332//        base::append(object(x));
333//                     ^
334//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use
335//      -ftemplate-backtrace-limit=0 to see all)
336//        result.append(*i);
337//               ^
338///opt/casa/01/include/boost/python/to_python_converter.hpp:88:22: note: in instantiation of member function
339//      'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool,
340//      std::__1::allocator<bool> > > >::convert' requested here
341//        &normalized::convert
342//                     ^
343//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:317:7: note: in instantiation of member function
344//      'boost::python::to_python_converter<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool, std::__1::allocator<bool>
345//      > >, false>::to_python_converter' requested here
346//      boost::python::to_python_converter < std::vector < T >,
347//      ^
348//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:542:2: note: in instantiation of member function
349//      'casa::pyrap::std_vector_to_list<bool>::std_vector_to_list' requested here
350//        std_vector_to_list < T > ();
351//        ^
352//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
353//      'casa::pyrap::convert_std_vector<bool>::reg' requested here
354//    { convert_std_vector<T>::reg(); }
355//                             ^
356//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
357//      'casa::pyrap::register_convert_std_vector<bool>' requested here
358//  casa::pyrap::register_convert_std_vector<bool>();
359//               ^
360///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:20:7: note: candidate constructor not viable: no known conversion from
361//      '__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true>' to 'const volatile void *' for 1st argument
362//      arg_to_python_base(void const volatile* source, registration const&);
363//      ^
364///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:15:28: note: candidate constructor (the implicit copy constructor) not viable: requires 1
365//      argument, but 2 were provided
366//  struct BOOST_PYTHON_DECL arg_to_python_base
367//                           ^
368//In file included from ...trunk/asap/src/python_asap.cpp:46:
369//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
370//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<bool, std::__1::allocator<bool> > > *' increases
371//      required alignment from 8 to 16 [-Wcast-align]
372//        (rvalue_from_python_storage<ContainerType>*)
373//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
374//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
375//      'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
376//        &construct,
377//         ^
378//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
379//      'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
380//      requested here
381//        from_python_sequence < std::vector < T >,
382//        ^
383//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
384//      'casa::pyrap::convert_std_vector<bool>::reg' requested here
385//    { convert_std_vector<T>::reg(); }
386//                             ^
387//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
388//      'casa::pyrap::register_convert_std_vector<bool>' requested here
389//  casa::pyrap::register_convert_std_vector<bool>();
390//               ^
391//12 warnings and 1 error generated.
392//make[2]: *** [src/CMakeFiles/_asap.dir/python_asap.cpp.o] Error 1
393//make[1]: *** [src/CMakeFiles/_asap.dir/all] Error 2
394//make: *** [all] Error 2
395//
396//
Note: See TracBrowser for help on using the repository browser.