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 3034 2015-03-31 23:35:15Z MalteMarquarding $ |
---|
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 | |
---|
50 | namespace asap { |
---|
51 | namespace python { |
---|
52 | |
---|
53 | void translate_ex(const casa::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 | |
---|
62 | using namespace boost::python; |
---|
63 | |
---|
64 | BOOST_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 | //////////////see error below////////////////////////////// |
---|
100 | casacore::python::register_convert_std_vector<bool>(); |
---|
101 | /////////////////////////////////////////////////////////// |
---|
102 | casacore::python::register_convert_casa_valueholder(); |
---|
103 | casacore::python::register_convert_casa_record(); |
---|
104 | |
---|
105 | } |
---|
106 | //[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o |
---|
107 | //cd ...trunk/asap/build/src && /usr/bin/clang++ -DAIPS_AUTO_STL -DAIPS_DEBUG -DAIPS_STDLIB -DCASACORE_NEEDS_RETHROW -DCASA_USECASAPATH -DENABLE_PLOTTER2 -DHAVE_LIBPYTHON -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/libpython/python-0.3.2 -o CMakeFiles/_asap.dir/python_asap.cpp.o -c ...trunk/asap/src/python_asap.cpp |
---|
108 | //warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option] |
---|
109 | //In file included from ...trunk/asap/src/python_asap.cpp:32: |
---|
110 | //In file included from /opt/casa/01/include/boost/python.hpp:29: |
---|
111 | //In file included from /opt/casa/01/include/boost/python/exec.hpp:9: |
---|
112 | ///opt/casa/01/include/boost/python/str.hpp:185:57: warning: unused parameter 'end' [-Wunused-parameter] |
---|
113 | // long count(T1 const& sub,T2 const& start, T3 const& end) const |
---|
114 | // ^ |
---|
115 | //In file included from ...trunk/asap/src/python_asap.cpp:32: |
---|
116 | //In file included from /opt/casa/01/include/boost/python.hpp:49: |
---|
117 | ///opt/casa/01/include/boost/python/opaque_pointer_converter.hpp:172:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers] |
---|
118 | //}; |
---|
119 | //^ |
---|
120 | //In file included from ...trunk/asap/src/python_asap.cpp:32: |
---|
121 | //In file included from /opt/casa/01/include/boost/python.hpp:52: |
---|
122 | //In file included from /opt/casa/01/include/boost/python/overloads.hpp:11: |
---|
123 | ///opt/casa/01/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter] |
---|
124 | // , keyword_range const& kw // ignored |
---|
125 | // ^ |
---|
126 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
127 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:95:9: warning: cast from |
---|
128 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'boost::python::converter::rvalue_from_python_storage<String> *' increases required alignment |
---|
129 | // from 8 to 16 [-Wcast-align] |
---|
130 | // (boost::python::converter::rvalue_from_python_storage<String>*) |
---|
131 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
132 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
133 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<asap::ScantableWrapper, |
---|
134 | // std::__1::allocator<asap::ScantableWrapper> > > *' increases required alignment from 8 to 16 [-Wcast-align] |
---|
135 | // (rvalue_from_python_storage<ContainerType>*) |
---|
136 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
137 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
138 | // 'casacore::python::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >, |
---|
139 | // casacore::python::stl_variable_capacity_policy>::construct' requested here |
---|
140 | // &construct, |
---|
141 | // ^ |
---|
142 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
143 | // 'casacore::python::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >, |
---|
144 | // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here |
---|
145 | // from_python_sequence < std::vector < T >, |
---|
146 | // ^ |
---|
147 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
148 | // 'casacore::python::convert_std_vector<asap::ScantableWrapper>::reg' requested here |
---|
149 | // { convert_std_vector<T>::reg(); } |
---|
150 | // ^ |
---|
151 | //...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization |
---|
152 | // 'casacore::python::register_convert_std_vector<asap::ScantableWrapper>' requested here |
---|
153 | // casacore::python::register_convert_std_vector<asap::ScantableWrapper>(); |
---|
154 | // ^ |
---|
155 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
156 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
157 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<int, std::__1::allocator<int> > > *' increases |
---|
158 | // required alignment from 8 to 16 [-Wcast-align] |
---|
159 | // (rvalue_from_python_storage<ContainerType>*) |
---|
160 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
161 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
162 | // 'casacore::python::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casacore::python::stl_variable_capacity_policy>::construct' requested here |
---|
163 | // &construct, |
---|
164 | // ^ |
---|
165 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
166 | // 'casacore::python::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence' |
---|
167 | // requested here |
---|
168 | // from_python_sequence < std::vector < T >, |
---|
169 | // ^ |
---|
170 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
171 | // 'casacore::python::convert_std_vector<int>::reg' requested here |
---|
172 | // { convert_std_vector<T>::reg(); } |
---|
173 | // ^ |
---|
174 | //...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization |
---|
175 | // 'casacore::python::register_convert_std_vector<int>' requested here |
---|
176 | // casacore::python::register_convert_std_vector<int>(); |
---|
177 | // ^ |
---|
178 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
179 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
180 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> > |
---|
181 | // > *' increases required alignment from 8 to 16 [-Wcast-align] |
---|
182 | // (rvalue_from_python_storage<ContainerType>*) |
---|
183 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
184 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
185 | // 'casacore::python::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, casacore::python::stl_variable_capacity_policy>::construct' |
---|
186 | // requested here |
---|
187 | // &construct, |
---|
188 | // ^ |
---|
189 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
190 | // 'casacore::python::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, |
---|
191 | // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here |
---|
192 | // from_python_sequence < std::vector < T >, |
---|
193 | // ^ |
---|
194 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
195 | // 'casacore::python::convert_std_vector<unsigned int>::reg' requested here |
---|
196 | // { convert_std_vector<T>::reg(); } |
---|
197 | // ^ |
---|
198 | //...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization |
---|
199 | // 'casacore::python::register_convert_std_vector<unsigned int>' requested here |
---|
200 | // casacore::python::register_convert_std_vector<uint>(); |
---|
201 | // ^ |
---|
202 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
203 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
204 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<float, std::__1::allocator<float> > > *' |
---|
205 | // increases required alignment from 8 to 16 [-Wcast-align] |
---|
206 | // (rvalue_from_python_storage<ContainerType>*) |
---|
207 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
208 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
209 | // 'casacore::python::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casacore::python::stl_variable_capacity_policy>::construct' requested here |
---|
210 | // &construct, |
---|
211 | // ^ |
---|
212 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
213 | // 'casacore::python::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence' |
---|
214 | // requested here |
---|
215 | // from_python_sequence < std::vector < T >, |
---|
216 | // ^ |
---|
217 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
218 | // 'casacore::python::convert_std_vector<float>::reg' requested here |
---|
219 | // { convert_std_vector<T>::reg(); } |
---|
220 | // ^ |
---|
221 | //...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization |
---|
222 | // 'casacore::python::register_convert_std_vector<float>' requested here |
---|
223 | // casacore::python::register_convert_std_vector<float>(); |
---|
224 | // ^ |
---|
225 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
226 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
227 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<double, std::__1::allocator<double> > > *' |
---|
228 | // increases required alignment from 8 to 16 [-Wcast-align] |
---|
229 | // (rvalue_from_python_storage<ContainerType>*) |
---|
230 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
231 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
232 | // 'casacore::python::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casacore::python::stl_variable_capacity_policy>::construct' requested |
---|
233 | // here |
---|
234 | // &construct, |
---|
235 | // ^ |
---|
236 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
237 | // 'casacore::python::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence' |
---|
238 | // requested here |
---|
239 | // from_python_sequence < std::vector < T >, |
---|
240 | // ^ |
---|
241 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
242 | // 'casacore::python::convert_std_vector<double>::reg' requested here |
---|
243 | // { convert_std_vector<T>::reg(); } |
---|
244 | // ^ |
---|
245 | //...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization |
---|
246 | // 'casacore::python::register_convert_std_vector<double>' requested here |
---|
247 | // casacore::python::register_convert_std_vector<double>(); |
---|
248 | // ^ |
---|
249 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
250 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
251 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<std::__1::basic_string<char>, |
---|
252 | // std::__1::allocator<std::__1::basic_string<char> > > > *' increases required alignment from 8 to 16 [-Wcast-align] |
---|
253 | // (rvalue_from_python_storage<ContainerType>*) |
---|
254 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
255 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
256 | // 'casacore::python::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, |
---|
257 | // casacore::python::stl_variable_capacity_policy>::construct' requested here |
---|
258 | // &construct, |
---|
259 | // ^ |
---|
260 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
261 | // 'casacore::python::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >, |
---|
262 | // casacore::python::stl_variable_capacity_policy>::from_python_sequence' requested here |
---|
263 | // from_python_sequence < std::vector < T >, |
---|
264 | // ^ |
---|
265 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
266 | // 'casacore::python::convert_std_vector<std::__1::basic_string<char> >::reg' requested here |
---|
267 | // { convert_std_vector<T>::reg(); } |
---|
268 | // ^ |
---|
269 | //...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization |
---|
270 | // 'casacore::python::register_convert_std_vector<std::__1::basic_string<char> >' requested here |
---|
271 | // casacore::python::register_convert_std_vector<std::string>(); |
---|
272 | // ^ |
---|
273 | //In file included from ...trunk/asap/src/python_asap.cpp:32: |
---|
274 | //In file included from /opt/casa/01/include/boost/python.hpp:11: |
---|
275 | //In file included from /opt/casa/01/include/boost/python/args.hpp:25: |
---|
276 | //In file included from /opt/casa/01/include/boost/python/object_core.hpp:14: |
---|
277 | //In file included from /opt/casa/01/include/boost/python/call.hpp:15: |
---|
278 | ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:209:9: error: no matching constructor for initialization of |
---|
279 | // 'boost::python::converter::detail::arg_to_python_base' |
---|
280 | // : arg_to_python_base(&x, registered<T>::converters) |
---|
281 | // ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
282 | ///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:256:7: note: in instantiation of member function |
---|
283 | // 'boost::python::converter::detail::value_arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > |
---|
284 | // >::value_arg_to_python' requested here |
---|
285 | // : base(x) |
---|
286 | // ^ |
---|
287 | ///opt/casa/01/include/boost/python/object_core.hpp:393:33: note: in instantiation of member function |
---|
288 | // 'boost::python::converter::arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >::arg_to_python' requested here |
---|
289 | // return python::incref(converter::arg_to_python<T>(x).get()); |
---|
290 | // ^ |
---|
291 | ///opt/casa/01/include/boost/python/object_core.hpp:312:10: note: in instantiation of function template specialization |
---|
292 | // 'boost::python::api::object_initializer_impl<false, false>::get<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' |
---|
293 | // requested here |
---|
294 | // >::get( |
---|
295 | // ^ |
---|
296 | ///opt/casa/01/include/boost/python/object_core.hpp:334:23: note: in instantiation of function template specialization |
---|
297 | // 'boost::python::api::object_base_initializer<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here |
---|
298 | // : object_base(object_base_initializer(x)) |
---|
299 | // ^ |
---|
300 | ///opt/casa/01/include/boost/python/list.hpp:72:22: note: in instantiation of function template specialization |
---|
301 | // 'boost::python::api::object::object<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here |
---|
302 | // base::append(object(x)); |
---|
303 | // ^ |
---|
304 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use |
---|
305 | // -ftemplate-backtrace-limit=0 to see all) |
---|
306 | // result.append(*i); |
---|
307 | // ^ |
---|
308 | ///opt/casa/01/include/boost/python/to_python_converter.hpp:88:22: note: in instantiation of member function |
---|
309 | // 'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::to_list<std::__1::vector<bool, |
---|
310 | // std::__1::allocator<bool> > > >::convert' requested here |
---|
311 | // &normalized::convert |
---|
312 | // ^ |
---|
313 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:317:7: note: in instantiation of member function |
---|
314 | // 'boost::python::to_python_converter<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::to_list<std::__1::vector<bool, std::__1::allocator<bool> |
---|
315 | // > >, false>::to_python_converter' requested here |
---|
316 | // boost::python::to_python_converter < std::vector < T >, |
---|
317 | // ^ |
---|
318 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:542:2: note: in instantiation of member function |
---|
319 | // 'casacore::python::std_vector_to_list<bool>::std_vector_to_list' requested here |
---|
320 | // std_vector_to_list < T > (); |
---|
321 | // ^ |
---|
322 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
323 | // 'casacore::python::convert_std_vector<bool>::reg' requested here |
---|
324 | // { convert_std_vector<T>::reg(); } |
---|
325 | // ^ |
---|
326 | //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization |
---|
327 | // 'casacore::python::register_convert_std_vector<bool>' requested here |
---|
328 | // casacore::python::register_convert_std_vector<bool>(); |
---|
329 | // ^ |
---|
330 | ///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:20:7: note: candidate constructor not viable: no known conversion from |
---|
331 | // '__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true>' to 'const volatile void *' for 1st argument |
---|
332 | // arg_to_python_base(void const volatile* source, registration const&); |
---|
333 | // ^ |
---|
334 | ///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 |
---|
335 | // argument, but 2 were provided |
---|
336 | // struct BOOST_PYTHON_DECL arg_to_python_base |
---|
337 | // ^ |
---|
338 | //In file included from ...trunk/asap/src/python_asap.cpp:46: |
---|
339 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from |
---|
340 | // 'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<bool, std::__1::allocator<bool> > > *' increases |
---|
341 | // required alignment from 8 to 16 [-Wcast-align] |
---|
342 | // (rvalue_from_python_storage<ContainerType>*) |
---|
343 | // ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
344 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:367:10: note: in instantiation of member function |
---|
345 | // 'casacore::python::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::stl_variable_capacity_policy>::construct' requested here |
---|
346 | // &construct, |
---|
347 | // ^ |
---|
348 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:543:2: note: in instantiation of member function |
---|
349 | // 'casacore::python::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::stl_variable_capacity_policy>::from_python_sequence' |
---|
350 | // requested here |
---|
351 | // from_python_sequence < std::vector < T >, |
---|
352 | // ^ |
---|
353 | //...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:550:30: note: in instantiation of member function |
---|
354 | // 'casacore::python::convert_std_vector<bool>::reg' requested here |
---|
355 | // { convert_std_vector<T>::reg(); } |
---|
356 | // ^ |
---|
357 | //...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization |
---|
358 | // 'casacore::python::register_convert_std_vector<bool>' requested here |
---|
359 | // casacore::python::register_convert_std_vector<bool>(); |
---|
360 | // ^ |
---|
361 | //12 warnings and 1 error generated. |
---|
362 | //make[2]: *** [src/CMakeFiles/_asap.dir/python_asap.cpp.o] Error 1 |
---|
363 | //make[1]: *** [src/CMakeFiles/_asap.dir/all] Error 2 |
---|
364 | //make: *** [all] Error 2 |
---|
365 | // |
---|
366 | // |
---|