Skip to content
Snippets Groups Projects
Commit b40b875f authored by Studer Gabriel's avatar Studer Gabriel
Browse files

stereocheck: docu updates

parent e2a16931
No related branches found
No related tags found
No related merge requests found
...@@ -342,10 +342,10 @@ class ClashInfo: ...@@ -342,10 +342,10 @@ class ClashInfo:
Constructor arguments are available as attributes: Constructor arguments are available as attributes:
* a1 * a1 (:class:`ost.mol.AtomHandle`)
* a2 * a2 (:class:`ost.mol.AtomHandle`)
* dist * dist (:class:`float`)
* tolerated_dist * tolerated_dist (:class:`float`)
""" """
def __init__(self, a1, a2, dist, tolerated_dist): def __init__(self, a1, a2, dist, tolerated_dist):
self.a1 = a1 self.a1 = a1
...@@ -367,11 +367,11 @@ class BondViolationInfo: ...@@ -367,11 +367,11 @@ class BondViolationInfo:
Constructor arguments are available as attributes: Constructor arguments are available as attributes:
* a1 * a1 (:class:`ost.mol.AtomHandle`)
* a2 * a2 (:class:`ost.mol.AtomHandle`)
* length * length (:class:`float`)
* exp_length * exp_length (:class:`float`)
* std * std (:class:`float`)
""" """
def __init__(self, a1, a2, length, exp_length, std): def __init__(self, a1, a2, length, exp_length, std):
self.a1 = a1 self.a1 = a1
...@@ -395,12 +395,12 @@ class AngleViolationInfo: ...@@ -395,12 +395,12 @@ class AngleViolationInfo:
Constructor arguments are available as attributes: Constructor arguments are available as attributes:
* a1 * a1 (:class:`ost.mol.AtomHandle`)
* a2 * a2 (:class:`ost.mol.AtomHandle`)
* a3 * a3 (:class:`ost.mol.AtomHandle`)
* angle * angle (:class:`float`)
* exp_angle * exp_angle (:class:`float`)
* std * std (:class:`float`)
""" """
def __init__(self, a1, a2, a3, angle, exp_angle, std): def __init__(self, a1, a2, a3, angle, exp_angle, std):
self.a1 = a1 self.a1 = a1
...@@ -457,8 +457,8 @@ def GetClashes(ent, vdw_radii = None, tolerance = 1.5, disulfid_dist = 2.03, ...@@ -457,8 +457,8 @@ def GetClashes(ent, vdw_radii = None, tolerance = 1.5, disulfid_dist = 2.03,
f"Got {ele}") f"Got {ele}")
# it would be elegant to just do a selection by the ele property. However, # it would be elegant to just do a selection by the ele property. However,
# thats case sensitive so someone could define a vdw radius for Cl but # thats case sensitive. So the element could be Cl but the vdw radii
# the element of the atom is CL. # are all caps.
elements = set([ele.upper() for ele in vdw_radii.keys()]) elements = set([ele.upper() for ele in vdw_radii.keys()])
for a in ent.atoms: for a in ent.atoms:
if a.GetElement().upper() in elements: if a.GetElement().upper() in elements:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment