excellent thank you, that worked perfectly. I just need to remember this feature next time I need it.
Thanks again
Use 'ma.max' instead of 'np.max'. This might be a bug OR an undocumented feature. :-)import numpy.ma as mamarr = ma.array(range(10), mask=[0,0,0,0,0,1,1,1,1,1])np.max(marr)4 # mask is useda = []a.append(marr)a.append(marr)np.max(a)9 # mask is not usedma.max(a)4 # mask is usedKindest regards,Tim
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion