-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
MAINT: Cleanup ma.array.__str__
#9768
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
Conversation
Working with 0d arrays is enough here
356341b
to
91b83ac
Compare
This means that large void arrays are now truncated as they are for other types, for speed.
4e1f3f7
to
25c808c
Compare
Clumsy mistake first time around on that last commit. All passing now. |
Actually, this is a bugfix. Before (1.13):
After
Although part of that is probably the 0d scalar stuff, and that'll likely change again with #9332 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look all OK.
@mhvk Feel free to merge ... |
Give me a few minutes to finish looking at this.. I started yesterday but there are updates since then. |
for name in names: | ||
(curdata, curmask) = (result[name], mask[name]) | ||
if curdata.dtype.names: | ||
if names: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically not necessary since this function is always called with names (or else the old code would fail). Fine to leave it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I get that this was intentional based on reorganization below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right, looks good.
Two approvals for a MAINT sounds like a good enough excuse to self-merge to me. |
Remove hack from gh-7659 for gh-7493