We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it seems that the Vec do not work with np.all
np.all
https://github.com/seung-lab/cloud-volume/blob/master/cloudvolume/lib.py#L764
np.all(Vec(False,True,True, dtype=bool)) *** TypeError: iteration over a 0-d array
this one works
np.all(np.asarray(Vec(False,True,True, dtype=bool)))
The text was updated successfully, but these errors were encountered:
Huh, this is pretty interesting. I suspect this is at fault:
https://github.com/numpy/numpy/blob/v1.21.0/numpy/core/fromnumeric.py#L73
Vec is a subtype of ndarray, so type(obj) will switch away from the ufunc.reduce path. Is this a bug in numpy?
type(obj)
ufunc.reduce
Sorry, something went wrong.
No branches or pull requests
it seems that the Vec do not work with
np.all
https://github.com/seung-lab/cloud-volume/blob/master/cloudvolume/lib.py#L764
this one works
The text was updated successfully, but these errors were encountered: