@@ -190,7 +190,7 @@ std::vector< std::vector<T> > listlist_to_vecvec(list l) {
190190class PythonCallbackIndexTyper : public CallbackIndexTyper {
191191
192192 boost::python::object callback;
193-
193+ using CallbackIndexTyper::get_atom_type_index;
194194 public:
195195
196196 // / iniitalize callbacktyper, if names are not provided, numerical names will be generated
@@ -217,7 +217,7 @@ class PythonCallbackIndexTyper: public CallbackIndexTyper {
217217class PythonCallbackVectorTyper : public CallbackVectorTyper {
218218
219219 boost::python::object callback;
220-
220+ using CallbackVectorTyper::get_atom_type_vector;
221221 public:
222222
223223 // / iniitalize callbacktyper, if names are not provided, numerical names will be generated
@@ -555,7 +555,7 @@ MAKE_ALL_GRIDS()
555555 init<object, unsigned , list>(
556556 (arg (" func" ), arg (" num_types" ), arg (" names" ) = list () ) ))
557557 .def (" num_types" , &PythonCallbackIndexTyper::num_types)
558- .def (" get_atom_type_index" , &PythonCallbackIndexTyper::get_atom_type_index)
558+ .def <std::pair< int , float > (PythonCallbackIndexTyper::*)(object a) const > (" get_atom_type_index" , &PythonCallbackIndexTyper::get_atom_type_index)
559559 .def (" get_type_names" ,&PythonCallbackIndexTyper::get_type_names);
560560 implicitly_convertible<std::shared_ptr<PythonCallbackIndexTyper>, std::shared_ptr<AtomTyper> >();
561561
@@ -574,7 +574,7 @@ MAKE_ALL_GRIDS()
574574 init<object, unsigned , list>(
575575 (arg (" func" ), arg (" num_types" ), arg (" names" ) = list () ) ))
576576 .def (" num_types" , &PythonCallbackVectorTyper::num_types)
577- .def (" get_atom_type_vector" , &PythonCallbackVectorTyper::get_atom_type_vector)
577+ .def < tuple (PythonCallbackVectorTyper::*)(object a) const > (" get_atom_type_vector" , &PythonCallbackVectorTyper::get_atom_type_vector)
578578 .def (" get_type_names" ,&PythonCallbackVectorTyper::get_type_names);
579579 implicitly_convertible<std::shared_ptr<PythonCallbackVectorTyper>, std::shared_ptr<AtomTyper> >();
580580
0 commit comments