diff --git a/transforms3d/axangles.py b/transforms3d/axangles.py index e5d2109..510e21f 100644 --- a/transforms3d/axangles.py +++ b/transforms3d/axangles.py @@ -107,7 +107,7 @@ def axangle2aff(axis, angle, point=None): M[:3,:3] = R if point is not None: # rotation not around origin - point = np.array(point[:3], dtype=np.float64, copy=False) + point = np.array(point[:3], dtype=np.float64) M[:3, 3] = point - np.dot(R, point) return M diff --git a/transforms3d/conftest.py b/transforms3d/conftest.py index da37efe..377d068 100644 --- a/transforms3d/conftest.py +++ b/transforms3d/conftest.py @@ -1,9 +1,9 @@ """ Configuration for py.test test run """ -def pytest_ignore_collect(path, config): +def pytest_ignore_collect(collection_path, config): """ Skip the origin Gohlke transforms for doctests. That file needs some specific doctest setup. """ - return path.basename == '_gohlketransforms.py' + return collection_path.name == '_gohlketransforms.py' diff --git a/transforms3d/quaternions.py b/transforms3d/quaternions.py index 110bc2a..7dd20d1 100644 --- a/transforms3d/quaternions.py +++ b/transforms3d/quaternions.py @@ -23,7 +23,6 @@ import math import numpy as np -_MAX_FLOAT = np.maximum_sctype(np.float64) _FLOAT_EPS = np.finfo(np.float64).eps @@ -86,7 +85,7 @@ def fillpositive(xyz, w2_thresh=None): except (AttributeError, ValueError): w2_thresh = -_FLOAT_EPS * 3 # Use maximum precision - xyz = np.asarray(xyz, dtype=_MAX_FLOAT) + xyz = np.asarray(xyz, dtype=np.float64) # Calculate w w2 = 1.0 - np.dot(xyz, xyz) if w2 < 0: