-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
FrozenNDArray cannot repr scalars #9031
New issue
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
Comments
this whole notion of a FrozenNDarray can be taken out actually this was originally was needed to make index immutable but that's handled elsewhere now |
Can we yank FrozenNDArray now, then? I guess we'd need to make sure that pickles would still work, but apart from that, as you note, all the references seem very shallow now. |
@dsm054 yes as I said a while back its not necessary. pickle compat is 'easy', just follow the pattern in |
on master:
keeps going back and forth between
__str__
and__unicode__
. a workaround would be to changeself
on this line toself if self.ndim else self.item()
.I ran into this bug while taking
.max
on the array:it is kind of unusual to me that here
.max
returns a zero dimensional array, whereas numpy returns a scalar:in particular,
np.isscalar
returns differently for the two:The text was updated successfully, but these errors were encountered: