dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

Fix ndim-1 array to scalar conversion (Deprecated NumPy 1.25).

Open dohmjan opened this issue 1 year ago • 1 comments

Hello!

As also mentioned in commit 2af59a1, NumPy 1.25 comes with a number of deprecations (https://numpy.org/devdocs/release/1.25.0-notes.html#deprecations).

Only ndim-0 arrays are treated as scalars. Conversion of an array with ndim > 0 to a scalar is deprecated. It raises a DeprecationWarning under NumPy 1.25, and will be an error in the future.

dohmjan avatar Nov 10 '23 12:11 dohmjan

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Nov 10 '23 12:11 google-cla[bot]