Fixed numpy Runtime Warnings

numpy throws a warning when you use comparison operations on numpy
arrays containing NaN.  to suppress these I just used a with block and
specified the warnings should be ignored.