You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Python 2.7.10, numpy 1.9.2, Windows 7, 64-bit AMD processor.
I'll let code do the talking:
Python 2.7.10 (default, May 23 2015, 09:44:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> f_arr = np.zeros((1000,))
>>> o_arr = np.ones((100,), dtype=object)
>>> b_arr = np.zeros((1000,), dtype=bool)
>>> b_arr[:100] = True
>>> f_arr[b_arr] = o_arr
This last line is supposed to set the first 100 elements of f_arr to 1. Instead, it crashes Python. This does not crash for significantly smaller arrays. I unfortunately cannot debug the underlying numpy code.
The text was updated successfully, but these errors were encountered:
Running Python 2.7.10, numpy 1.9.2, Windows 7, 64-bit AMD processor.
I'll let code do the talking:
This last line is supposed to set the first 100 elements of f_arr to 1. Instead, it crashes Python. This does not crash for significantly smaller arrays. I unfortunately cannot debug the underlying numpy code.
The text was updated successfully, but these errors were encountered: