source: trunk/src/python_asap.cpp@ 3034

Last change on this file since 3034 was 3034, checked in by Malte Marquarding, 10 years ago

Remove reference to libpryap (scons). use casacore_python from now on

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 23.8 KB
RevLine 
[2]1//#---------------------------------------------------------------------------
[875]2//# python_asap.cc: python module for single dish package asap
[2]3//#---------------------------------------------------------------------------
[2526]4//# Copyright (C) 2004-2012
[125]5//# ATNF
[2]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//#
[30]29//# $Id: python_asap.cpp 3034 2015-03-31 23:35:15Z MalteMarquarding $
[2]30//#---------------------------------------------------------------------------
[125]31
[2]32#include <boost/python.hpp>
[95]33#include <boost/python/exception_translator.hpp>
[2]34
[2526]35#include <string>
36#include <vector>
37
[125]38#include <casa/aips.h>
39#include <casa/Exceptions/Error.h>
[875]40#include "ScantableWrapper.h"
[125]41
[3034]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>
[875]46
[3034]47
[875]48#include "python_asap.h"
[2]49
[95]50namespace asap {
51 namespace python {
[1501]52
[125]53void translate_ex(const casa::AipsError& e)
[95]54{
55 // Use the Python 'C' API to set up an exception object
56 PyErr_SetString(PyExc_RuntimeError, e.what());
57}
58
59 }
60}
[1501]61
[2]62using namespace boost::python;
63
[95]64BOOST_PYTHON_MODULE(_asap) {
[2832]65#ifdef ENABLE_PLOTTER2
[2830]66 asap::python::python_Plotter2();
[2832]67#endif //ENABLE_PLOTTER2
[875]68 asap::python::python_Scantable();
69 asap::python::python_STFiller();
[1819]70 asap::python::python_Filler();
[1974]71 asap::python::python_MSFiller();
[875]72 asap::python::python_STSelector();
73 asap::python::python_STMath();
[894]74 asap::python::python_Fitter();
[881]75 asap::python::python_STLineFinder();
[960]76 asap::python::python_STFitEntry();
[988]77 asap::python::python_STWriter();
[1974]78 asap::python::python_MSWriter();
[1126]79 asap::python::python_LineCatalog();
[1819]80 asap::python::python_LogSink();
[1598]81 asap::python::python_STCoordinate();
[1715]82 asap::python::python_STAtmosphere();
[1819]83 asap::python::python_SrcType();
[2356]84 asap::python::python_STGrid();
[2921]85 asap::python::python_Iterator();
[2613]86 asap::python::python_EdgeMarker();
[2689]87 asap::python::python_PlotHelper();
[2707]88 asap::python::python_STSideBandSep();
[2742]89 asap::python::python_CalibrationManager();
[988]90
[3034]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>();
[3029]99//////////////see error below//////////////////////////////
[3034]100 casacore::python::register_convert_std_vector<bool>();
[3029]101///////////////////////////////////////////////////////////
[3034]102 casacore::python::register_convert_casa_valueholder();
103 casacore::python::register_convert_casa_record();
[2666]104
[2]105}
[3029]106//[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o
[3034]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
[3029]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:
[3034]127//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:95:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]132//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]140// &construct,
141// ^
[3034]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
[3029]145// from_python_sequence < std::vector < T >,
146// ^
[3034]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
[3029]149// { convert_std_vector<T>::reg(); }
150// ^
151//...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization
[3034]152// 'casacore::python::register_convert_std_vector<asap::ScantableWrapper>' requested here
153// casacore::python::register_convert_std_vector<asap::ScantableWrapper>();
[3029]154// ^
155//In file included from ...trunk/asap/src/python_asap.cpp:46:
[3034]156//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]163// &construct,
164// ^
[3034]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'
[3029]167// requested here
168// from_python_sequence < std::vector < T >,
169// ^
[3034]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
[3029]172// { convert_std_vector<T>::reg(); }
173// ^
174//...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization
[3034]175// 'casacore::python::register_convert_std_vector<int>' requested here
176// casacore::python::register_convert_std_vector<int>();
[3029]177// ^
178//In file included from ...trunk/asap/src/python_asap.cpp:46:
[3034]179//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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'
[3029]186// requested here
187// &construct,
188// ^
[3034]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
[3029]192// from_python_sequence < std::vector < T >,
193// ^
[3034]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
[3029]196// { convert_std_vector<T>::reg(); }
197// ^
198//...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization
[3034]199// 'casacore::python::register_convert_std_vector<unsigned int>' requested here
200// casacore::python::register_convert_std_vector<uint>();
[3029]201// ^
202//In file included from ...trunk/asap/src/python_asap.cpp:46:
[3034]203//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]210// &construct,
211// ^
[3034]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'
[3029]214// requested here
215// from_python_sequence < std::vector < T >,
216// ^
[3034]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
[3029]219// { convert_std_vector<T>::reg(); }
220// ^
221//...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization
[3034]222// 'casacore::python::register_convert_std_vector<float>' requested here
223// casacore::python::register_convert_std_vector<float>();
[3029]224// ^
225//In file included from ...trunk/asap/src/python_asap.cpp:46:
[3034]226//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]233// here
234// &construct,
235// ^
[3034]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'
[3029]238// requested here
239// from_python_sequence < std::vector < T >,
240// ^
[3034]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
[3029]243// { convert_std_vector<T>::reg(); }
244// ^
245//...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization
[3034]246// 'casacore::python::register_convert_std_vector<double>' requested here
247// casacore::python::register_convert_std_vector<double>();
[3029]248// ^
249//In file included from ...trunk/asap/src/python_asap.cpp:46:
[3034]250//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]258// &construct,
259// ^
[3034]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
[3029]263// from_python_sequence < std::vector < T >,
264// ^
[3034]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
[3029]267// { convert_std_vector<T>::reg(); }
268// ^
269//...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization
[3034]270// 'casacore::python::register_convert_std_vector<std::__1::basic_string<char> >' requested here
271// casacore::python::register_convert_std_vector<std::string>();
[3029]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// ^
[3034]304//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use
[3029]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
[3034]309// 'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casacore::python::to_list<std::__1::vector<bool,
[3029]310// std::__1::allocator<bool> > > >::convert' requested here
311// &normalized::convert
312// ^
[3034]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>
[3029]315// > >, false>::to_python_converter' requested here
316// boost::python::to_python_converter < std::vector < T >,
317// ^
[3034]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
[3029]320// std_vector_to_list < T > ();
321// ^
[3034]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
[3029]324// { convert_std_vector<T>::reg(); }
325// ^
326//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
[3034]327// 'casacore::python::register_convert_std_vector<bool>' requested here
328// casacore::python::register_convert_std_vector<bool>();
[3029]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:
[3034]339//...trunk/asap/external/libpython/python-0.3.2/python/Converters/PycBasicData.h:424:9: warning: cast from
[3029]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// ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[3034]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
[3029]346// &construct,
347// ^
[3034]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'
[3029]350// requested here
351// from_python_sequence < std::vector < T >,
352// ^
[3034]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
[3029]355// { convert_std_vector<T>::reg(); }
356// ^
357//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
[3034]358// 'casacore::python::register_convert_std_vector<bool>' requested here
359// casacore::python::register_convert_std_vector<bool>();
[3029]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//
Note: See TracBrowser for help on using the repository browser.