From aaaf8f9c2c7b494e13e7f11f3a552c39e4f5cf97 Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Thu, 6 Sep 2018 13:30:18 +0200 Subject: [PATCH] Export citation operators to Python --- modules/io/pymod/export_mmcif_io.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/io/pymod/export_mmcif_io.cc b/modules/io/pymod/export_mmcif_io.cc index d61cde026..806031da6 100644 --- a/modules/io/pymod/export_mmcif_io.cc +++ b/modules/io/pymod/export_mmcif_io.cc @@ -122,6 +122,8 @@ void export_mmcif_io() .add_property("authors", make_function(&MMCifInfoCitation::GetAuthorList, return_value_policy<copy_const_reference>()), &MMCifInfoCitation::SetAuthorList) + .def("__eq__", &MMCifInfoCitation::operator==) + .def("__ne__", &MMCifInfoCitation::operator!=) ; class_<std::vector<MMCifInfoCitation> >("MMCifInfoCitationList", init<>()) -- GitLab