Closed baldassarreFe closed 5 months ago
Heya. Yeah, agree, it should be something other than an exception. I think I'll catch the exception and use the default numpy repr.
@baldassarreFe I've ended up just checking for non-numeric types. Released 0.2.12, please give it a go (pip in there, conda will take some time to update)
Hello, I'll update and check that it works. Thanks a lot!!
Currently invoking
lo()
on arrays that contain non-numeric dtypes fails when checking if the array is all-zero, and when computing min/max/mean/std:Input:
Output:
The ideal behavior would be to catch the exception and still print some information about the array, for example:
Input:
Output: