-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
BUG: scipy.ndimage.value_indices
returns empty dict for intc
/uintc
dtype on Windows
#19423
Comments
Thanks @kmaehashi I am not sure if this is a problem with value_indices or not. The value_indices C code contains a few switch statements like this
where
with many cases for different machine type sizes. At the Python level, on Linux at least,
So, I am not sure what would be happening in the cupy code (on Windows) that allows these to be distinct. I am a bit puzzled by this. I am not sure whether the problem is in value_indices, numpy, or cupy. Do you have any thoughts? |
* Fixes scipygh-19423 * Add a few more `case` statements to account for the (i.e., Windows) data types that don't have a fixed width, and add a regression test. [skip circle] [skip cirrus]
* Fixes scipygh-19423 * Add a few more `case` statements to account for the (i.e., Windows) data types that don't have a fixed width, and add a regression test. [skip circle] [skip cirrus]
* Fixes scipygh-19423 * Add a few more `case` statements to account for the (i.e., Windows) data types that don't have a fixed width, and add a regression test. [skip circle] [skip cirrus]
* Fixes scipygh-19423 * Add a few more `case` statements to account for the (i.e., Windows) data types that don't have a fixed width, and add a regression test. [skip circle] [skip cirrus]
Describe your issue.
scipy.ndimage.value_indices
returns an empty dict on Windows, if the input isintc
/uintc
dtype.Discovered in cupy/cupy#7947.
Reproducing Code Example
Error message
SciPy/NumPy/Python version and system information
The text was updated successfully, but these errors were encountered: