Skip to content
Snippets Groups Projects
Commit 544c8d48 authored by Marco Biasini's avatar Marco Biasini
Browse files

bond_specs and atom_specs are properties, not methods

parent ca77dfa1
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment