Commit b2ac07ad authored by Peter Eastman's avatar Peter Eastman
Browse files

Improved documentation for loadBondDefinitions()

parent 77e2ddf4
...@@ -140,7 +140,9 @@ class Topology(object): ...@@ -140,7 +140,9 @@ class Topology(object):
The built in residues.xml file containing definitions for standard amino acids and nucleotides is loaded automatically. The built in residues.xml file containing definitions for standard amino acids and nucleotides is loaded automatically.
This method can be used to load additional definitions for other residue types. They will then be used in subsequent This method can be used to load additional definitions for other residue types. They will then be used in subsequent
calls to createStandardBonds(). calls to createStandardBonds(). This is a static method, so it affects subsequent calls on all Topology objects.
Also note that PDBFile calls createStandardBonds() automatically when a file is loaded, so the newly loaded definitions
will be used for any PDB file loaded after this is called.
""" """
tree = etree.parse(file) tree = etree.parse(file)
for residue in tree.getroot().findall('Residue'): for residue in tree.getroot().findall('Residue'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment