8000 MAINT: More Histogramdd cleanup by eric-wieser · Pull Request #10863 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MAINT: More Histogramdd cleanup #10863

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

Merged
merged 8 commits into from
Apr 9, 2018
Merged

Conversation

eric-wieser
Copy link
Member
@eric-wieser eric-wieser commented Apr 9, 2018

Lots of small and unrelated cleanups, each just a few lines. Submitted as one PR to minimize email noise, but the commits are self-contained.

This doesn't attempt to change any outward-facing behavior - it just makes the oddities (#7845, #10864) stand out more.

`x1d[nonzero(mask1d)[0]]` is just a less readable way to spell `x1d[mask1d]`
len(xy) == N, and we already checked if N == 0 above.
…larger array

The result is left as a float, even though it no longer needs to be, as this commit aims not to change behavior.
Ncount = tuple(
np.digitize(sample[:, i], edges[i])
for i in _range(D)
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these look better when aligned with the arguments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0