Commit fe1ba843 authored by peastman's avatar peastman Committed by GitHub
Browse files

Merge pull request #1520 from peastman/mtserror

Fixed an exception with Python 3
parents a3af2819 a2ef6f63
...@@ -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