dm_control
dm_control copied to clipboard
Fix ndim-1 array to scalar conversion (Deprecated NumPy 1.25).
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.
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.