Skip to content
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

MAINT: Upcast to int_ instead of int64 to avoid bincount issue. #383

Merged
merged 1 commit into from
Oct 31, 2017

Conversation

jvkersch
Copy link
Contributor

This updates the computation of the root-mean square function (used in tests to compare generated images with the expectation) to use int_ instead of blanket 64-bit. This came up because the result of the upcast is fed into np.bincount, which on 32-bit Windows will raise a TypeError for 64-bit inputs.

@jvkersch
Copy link
Contributor Author

Thanks @itziakos

@jvkersch jvkersch merged commit 7747ad4 into master Oct 31, 2017
@jvkersch jvkersch deleted the tst/upcast-issue-win32-x86 branch October 31, 2017 17:43
@mdickinson
Copy link
Member

which on 32-bit Windows will raise a TypeError for 64-bit inputs

Ouch. Seriously?! Is there an open NumPy issue for that?

@jvkersch
Copy link
Contributor Author

@mdickinson This looks like it's related: numpy/numpy#4366

jvkersch added a commit that referenced this pull request Nov 14, 2017
MAINT: Upcast to int_ instead of int64 to avoid bincount issue.
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

Successfully merging this pull request may close these issues.

3 participants