Commit 25c22045 authored by Lee-Ping Wang's avatar Lee-Ping Wang
Browse files

Removed an if statement that was causing addHydrogens() to fail for systems containing OH groups.

parent 604a8538
......@@ -734,7 +734,6 @@ class Modeller(object):
else:
delta = Vec3(random.random(), random.random(), random.random())*nanometer
delta *= 0.1*nanometer/norm(delta)
if len(expected) > 1:
delta += 0.05*Vec3(random.random(), random.random(), random.random())*nanometer
delta *= 0.1*nanometer/norm(delta)
newPositions.append(self.positions[parent.index]+delta)
......
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