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
(..)/site-packages/spyderlib/widgets/arrayeditor.py", line 249, in data
/(self.vmax-self.vmin)
TypeError: numpy boolean subtract, the operator '-', is deprecated, use the bitwise_xor, the '^' operator, or the logical_xor function instead. What steps will reproduce the problem?
import numpy as np
test = np.zeros((3,3),dtype='bool')
Double click test in variable explorer window
What is the expected output? What do you see instead?
Popup window of the array w/ values. Crash (Seg. Fault)
ccordoba12
changed the title
Inspecting bool arrays in Var. Explorer(arrayeditor.py) uses deprecated '-' operator in numpy
Inspecting Numpy bool arrays in Var. Explorer uses deprecated '-' operator in Numpy
Jun 27, 2017
Thanks for reporting. The fix seems simple enough, would you like to submit a pull request for it? If you do, please make your PR against our 3.x branch.
GKosiba
added a commit
to GKosiba/spyder
that referenced
this issue
Jun 27, 2017
Changed numpy boolean subract operator '-' to np.logical_xor. As suggested in the numpy deprec warning.
Tested locally with no error originally described in spyder-ide#4663
Description of your problem
(..)/site-packages/spyderlib/widgets/arrayeditor.py", line 249, in data
/(self.vmax-self.vmin)
TypeError: numpy boolean subtract, the operator '-', is deprecated, use the bitwise_xor, the '^' operator, or the logical_xor function instead.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Popup window of the array w/ values. Crash (Seg. Fault)
Please provide any additional information below
Versions and main components
Dependencies
jedi >=0.9.0 : 0.10.2 (OK)
matplotlib >=1.0 : 2.0.2 (OK)
nbconvert >=4.0 : 5.2.1 (OK)
numpy >=1.7 : 1.14.0.dev0+03283c2 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 5.2.2 (OK)
pyflakes >=0.5.0 : 1.5.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.2 (OK)
qtconsole >=4.2.0: 4.3.0 (OK)
rope >=0.9.4 : 0.10.5 (OK)
sphinx >=0.6.6 : 1.6.2 (OK)
sympy >=0.7.3 : None (NOK)
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
The text was updated successfully, but these errors were encountered: