Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base.transforms3d Numpy DeprecationWarning #144

Open
zachobrien-bdai opened this issue Nov 21, 2024 · 0 comments
Open

base.transforms3d Numpy DeprecationWarning #144

zachobrien-bdai opened this issue Nov 21, 2024 · 0 comments

Comments

@zachobrien-bdai
Copy link

zachobrien-bdai commented Nov 21, 2024

The statement at spatialmath.base.transforms3d:761 yields a deprecation warning. This should probably be addressed to avoid future errors if a higher version of Numpy is eventually used.

spatialmath/base/transforms3d.py:761: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    R = np.eye(3) + math.sin(θ) * sk + (1.0 - math.cos(θ)) * sk @ sk

Reference:

R = np.eye(3) + math.sin(θ) * sk + (1.0 - math.cos(θ)) * sk @ sk

@zachobrien-bdai zachobrien-bdai changed the title Numpy DeprecationWarning base.transforms3d Numpy DeprecationWarning Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant