ich want to replace values that differ more than 50% from my mean value by the vell before. The ocurring error is: "The truth value of an array with more than one element is ambigous. Use a.any() or a.all()."Any ideas?