"openmmapi/vscode:/vscode.git/clone" did not exist on "6bf994397a535baada58cb28f852ffec1657f086"
Commit a2ef6f63 authored by peastman's avatar peastman
Browse files

Fixed an exception with Python 3

parent a3af2819
...@@ -90,7 +90,7 @@ class MTSIntegrator(CustomIntegrator): ...@@ -90,7 +90,7 @@ class MTSIntegrator(CustomIntegrator):
def _createSubsteps(self, parentSubsteps, groups): def _createSubsteps(self, parentSubsteps, groups):
group, substeps = groups[0] group, substeps = groups[0]
stepsPerParentStep = substeps/parentSubsteps stepsPerParentStep = substeps//parentSubsteps
if stepsPerParentStep < 1 or stepsPerParentStep != int(stepsPerParentStep): if stepsPerParentStep < 1 or stepsPerParentStep != int(stepsPerParentStep):
raise ValueError("The number for substeps for each group must be a multiple of the number for the previous group") raise ValueError("The number for substeps for each group must be a multiple of the number for the previous group")
if group < 0 or group > 31: if group < 0 or group > 31:
......
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