Skip to content

Commit

Permalink
Fully qualify imports from math
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Oct 6, 2023
1 parent a5c5ff3 commit 43a0263
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/core/test/test_transformation_symmetry_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import IMP.atom
import IMP.rmf
import RMF
from math import *
import math
import os
import IMP.test
import itertools
Expand Down Expand Up @@ -63,11 +63,11 @@ def get_angle_and_axis(q):
if 1.0 < q[0] < 1.001:
angle = 0.
else:
angle = 2 * acos(q[0])
angle = 2 * math.acos(q[0])
if angle != 0:
x = q[1] / sqrt(1-q[0]*q[0])
y = q[2] / sqrt(1-q[0]*q[0])
z = q[3] / sqrt(1-q[0]*q[0])
x = q[1] / math.sqrt(1-q[0]*q[0])
y = q[2] / math.sqrt(1-q[0]*q[0])
z = q[3] / math.sqrt(1-q[0]*q[0])
return (angle,(x,y,z))
else:
return (0,None)
Expand Down Expand Up @@ -183,7 +183,7 @@ def test_complete(self):
rotational_point=IMP.algebra.Vector3D(0,0,0)
disabled_movers=set()
for n,c in enumerate(pss[1:]):
rotation_angle = 2.0 * pi / len(pss) * float(n+1)
rotation_angle = 2.0 * math.pi / len(pss) * float(n+1)
rotation3D = IMP.algebra.get_rotation_about_axis(rotational_axis, rotation_angle)
transformation3D =IMP.algebra.get_rotation_about_point(rotational_point, rotation3D)
add_symmetry(c,pss[0],transformation3D,mdl)
Expand Down

0 comments on commit 43a0263

Please sign in to comment.