Skip to content
Snippets Groups Projects
Commit 4a0169e6 authored by B13nch3n's avatar B13nch3n
Browse files

SCHWED-4848: Gather ChainHandles of branched entities, Python export

parent b567b394
No related branches found
No related tags found
No related merge requests found
......@@ -415,6 +415,7 @@ void export_mmcif_io()
.def("GetEntityBranchLinks", &MMCifInfo::GetEntityBranchLinks)
.def("ConnectBranchLinks", &MMCifInfo::ConnectBranchLinks)
.def("GetEntityBranchChainNames", &WrapGetNames)
.def("GetEntityBranchChains", &MMCifInfo::GetEntityBranchChains)
.add_property("citations", make_function(&MMCifInfo::GetCitations,
return_value_policy<copy_const_reference>()))
.add_property("biounits", make_function(&MMCifInfo::GetBioUnits,
......
......@@ -302,6 +302,9 @@ class TestMMCifInfo(unittest.TestCase):
chain_names = info.GetEntityBranchChainNames()
self.assertEqual(chain_names, ['A', 'B'])
chains = info.GetEntityBranchChains()
self.assertEqual(chains[0].name, 'A')
self.assertEqual(chains[1].name, 'B')
if __name__== '__main__':
from ost import testutils
......
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