Hi all,
Unlike conversions of 0-d arrays via:
float(np.array([1]))
conversions of 1-D or higher dimensional arrays with a single element
are a bit strange:
float(np.array([1]))
And deprecating it has come up often enough with many in favor, but
also many worried about the possible annoyance to users.
I decided to give the PR a shot, I may have misread the room on it
though:
https://github.com/numpy/numpy/pull/10615
So if this turns out noisy (or you may simply disagree), I am happy to
revert!
This looks like a great clean-up to me, thanks for giving this a try!