I want to modify an existing mask for future use in my code according to some condition:
import pylab mask1 = arange(10) > 5;
As you can see, this was the first item that was changed, and not the last, as expected. What is the right way to do this?
EDIT: Sorry, my bad one, as some of you have indicated that the code is correct, I donβt know what is going on there, I will just delete the question.
source share