Skip to content

histogramdd: ValueError: The first argument of bincount must be non-negative #8531

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

Closed
david-hoffman opened this issue Jan 26, 2017 · 1 comment

Comments

@david-hoffman
Copy link

This error occurs when using a large number of bins. It looks like the problem is windows specific and has to do with the fact that on windows long is 32 bit not 64 causing an overflow for large number of bins.

Specifically it looks like the problem is on line 981 xy = zeros(N, int). int should be changed to np.int64 or np.uint32 if possible.

@jaimefrio
Copy link
Member

The correct type would be np.intp. Do you want to send a PR for this?

eric-wieser added a commit to eric-wieser/numpy that referenced this issue Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants