diff --git a/modules/conop/pymod/export_compound.cc b/modules/conop/pymod/export_compound.cc index d39a05a840570f31e466fee3757ab9ed7e3c8882..a2599acf43b004562cd20efd198456a9a577b10a 100644 --- a/modules/conop/pymod/export_compound.cc +++ b/modules/conop/pymod/export_compound.cc @@ -83,9 +83,9 @@ void export_Compound() { &Compound::SetOneLetterCode) .def("GetAtomSpecs", &Compound::GetAtomSpecs, return_value_policy<copy_const_reference>()) - .def("bond_specs", make_function(&Compound::GetBondSpecs, + .add_property("bond_specs", make_function(&Compound::GetBondSpecs, return_value_policy<copy_const_reference>())) - .def("atom_specs", make_function(&Compound::GetAtomSpecs, + .add_property("atom_specs", make_function(&Compound::GetAtomSpecs, return_value_policy<copy_const_reference>())) .def("AddAtom", &Compound::AddAtom) .def("AddBond", &Compound::AddBond)