> I'm guessing you are seeing overflow problems with the boolean > representation which is the result of logical comparisons > (which uses only 8 bit values) try: > > sum(float(not_equal... > > to eliminate that problem. > > Perry > arg, I should have said: sum(not_equal(...).astype(Float))