19 from _ost_conop
import *
34 Uses the current default builder to connect the atoms of the entity, assign
35 torsions, and fill in missing or correct erroneous information such as the
36 chemical class of the residues and the atom's element.
38 :param ent: A valid entity
39 :type ent: :class:`~ost.mol.EntityHandle`
41 conop_inst=Conopology.Instance()
42 conop_inst.ConnectAll(conop_inst.GetBuilder(
"DEFAULT"), ent, 0)
46 Get registered builder by name
48 :param name: The name of the builder
50 :returns: The builder or None, if the builder doesn't exist
56 Register builder to OpenStructure
58 :param builder: A instance of :class:`Builder`
60 :param name: The name of the builder
62 conop_inst=Conopology.Instance()
63 conop_inst.RegisterBuilder(builder, name)
67 Set the builder with the given name as the default. You will have to register
68 a builder with :func:`RegisterBuilder` before you will be able to set it as
71 :raises: :exc:`RuntimeError` when trying to set a builder as the default that
72 has not been registered yet.
74 conop_inst=Conopology.Instance()
75 conop_inst.SetDefaultBuilder(builder_name)