From 43a0263a5c61421b566ea058916eac12ae66c094 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Fri, 6 Oct 2023 09:43:24 -0700 Subject: [PATCH] Fully qualify imports from math --- modules/core/test/test_transformation_symmetry_mc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/core/test/test_transformation_symmetry_mc.py b/modules/core/test/test_transformation_symmetry_mc.py index d7b5185f38..252b1b84ce 100644 --- a/modules/core/test/test_transformation_symmetry_mc.py +++ b/modules/core/test/test_transformation_symmetry_mc.py @@ -3,7 +3,7 @@ import IMP.atom import IMP.rmf import RMF -from math import * +import math import os import IMP.test import itertools @@ -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) @@ -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)