-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Let imshow handle float128 data. #8447
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
There are too many windows failures to be transient. |
I think I got it right this time. |
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.
👍
if (self._A.ndim not in (2, 3) or | ||
(self._A.ndim == 3 and self._A.shape[-1] not in (3, 4))): | ||
if not (self._A.ndim == 2 | ||
or self._A.ndim == 3 and self._A.shape[-1] in [3, 4]): |
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.
I think that the not
should not have been dropped?
I am partial towards leaving in ()
, even if they are not strictly needed when they help clarity.
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.
the boolean structure looks correct to me
i think the newline already helps with priority
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.
Ah, I missed the leading not
when I read this before 🐑
The important parts are passing "same_kind" to can_cast (so that float128 is considered castable to float64) and converting float128 (longdouble for windows compat) back to float32 after normalization (as Agg doesn't handle float128). The rest is just small esthetic fixes.
xref #8445.