From 5f572c5a1cc506d16c22fa103582cebdea936ef4 Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavalias-github@xavier.robin.name>
Date: Tue, 4 Oct 2022 11:39:57 +0200
Subject: [PATCH] Add missing definitions

---
 modules/mol/base/pymod/export_atom_view.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/mol/base/pymod/export_atom_view.cc b/modules/mol/base/pymod/export_atom_view.cc
index f4279bd58..9f3d4556d 100644
--- a/modules/mol/base/pymod/export_atom_view.cc
+++ b/modules/mol/base/pymod/export_atom_view.cc
@@ -39,6 +39,8 @@ void export_AtomView()
   class_<AtomView, bases<AtomBase> >("AtomView", init<>())
     .def("GetResidue",&AtomView::GetResidue)
     .add_property("residue",&AtomView::GetResidue)
+    .def("GetEntity",&AtomView::GetEntity)
+    .add_property("entity",&AtomView::GetEntity)
     .def("GetChain",get_chain)
     .add_property("chain",get_chain)
     .def(self==self)
@@ -48,6 +50,7 @@ void export_AtomView()
     .add_property("handle", &AtomView::GetHandle)
     .def("GetBondCount", &AtomView::GetBondCount)
     .def("GetBondList", &AtomView::GetBondList)
+    .add_property("bonds", &AtomView::GetBondList)
     .def("GetHashCode", &AtomView::GetHashCode)
     .def("__hash__", &AtomView::GetHashCode)
     .add_property("hash_code", &AtomView::GetHashCode)
-- 
GitLab