sgsellan / gpytoolbox

A collection of utility functions to prototype geometry processing research in python
https://gpytoolbox.org
GNU General Public License v3.0
206 stars 15 forks source link

Address numpy deprecation warning #122

Closed odedstein closed 5 months ago

odedstein commented 5 months ago

This PR is meant to address a variety of numpy deprecation warnings that we are getting on newer numpy versions:

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.)

It seems like it can be easily fixed by just using np.squeeze... right?