From 358dcbe8e8d8cee880736f2121a1d55221bc2398 Mon Sep 17 00:00:00 2001 From: B13nch3n <stefan.bienert@me.com> Date: Wed, 15 Jul 2020 14:01:24 +0200 Subject: [PATCH] SCHWED-4847: Export the entity branch map --- modules/io/pymod/export_mmcif_io.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/io/pymod/export_mmcif_io.cc b/modules/io/pymod/export_mmcif_io.cc index 9c860b596..a92227bd8 100644 --- a/modules/io/pymod/export_mmcif_io.cc +++ b/modules/io/pymod/export_mmcif_io.cc @@ -19,6 +19,7 @@ #include <boost/python.hpp> #include <boost/shared_ptr.hpp> #include <boost/python/suite/indexing/vector_indexing_suite.hpp> +#include <boost/python/suite/indexing/map_indexing_suite.hpp> using namespace boost::python; #include <ost/export_helper/pair_to_tuple_conv.hh> @@ -344,7 +345,11 @@ void export_mmcif_io() .add_property("atom2", &MMCifInfoEntityBranch::GetAtom2, &MMCifInfoEntityBranch::SetAtom2) ; - + + class_<MMCifInfoEntityBranchMap>("MMCifInfoEntityBranchMap", init<>()) + .def(map_indexing_suite<MMCifInfoEntityBranchMap>()) + ; + class_<MMCifInfo>("MMCifInfo", init<>()) .def("AddCitation", &MMCifInfo::AddCitation) .def("GetCitations", make_function(&MMCifInfo::GetCitations, -- GitLab