-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Regression: Path.contains_points now returns uint instead of bool #6566
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
I thought we were casting to bool on the way out? Is that only on master On Fri, Jun 10, 2016 at 8:58 AM, Thomas A Caswell notifications@github.com
|
@WeatherGod - the failure is on master, I haven't tested elsewhere |
attn @mdboom |
I think we should revert the change to return uint -> bool. We broke that api 1.4->1.5 without realizing it, but it is better to stick with it (rather than swing back and forth). Also as @astrofrog the bool is more natural to use for masking. |
Closed by #6654 |
In Matplotlib 1.5.1, contains_points return a boolean, consistent with the docstring:
However, in the latest developer version, an
uint8
is returned:This causes issues with packages that are assuming bool, since masking arrays using an array of ints has a different results (it will either select the first or second element or both from an array), so I believe this is a regression.
The text was updated successfully, but these errors were encountered: