PyCharm is throwing a warning when I do np.where(temp == True)
My full code:
from numpy import where, arraya = array([[0.4682], [0.5318]])
b = array([[0.29828851, 0., 0.28676873, 0., 0., 0., 0., 0.28801431, 0., 0., 0.71283046, 0.],[0.70171149, 0., 0.71323127, 0., 0., 0., 0., 0.71198569, 0., 0., 0.28716954, 0.]])temp = b > 1.1*a
pos = where(temp == True)print(pos)
The code does not work as expected if I change temp == True to temp is True as suggested in other post.
How should this warning be resolved?
where(temp) works. Thanks a lot !! @Joao Vitorino Thanks for the explanation, @jedwards. It helps.