set numpy floating point error level to ignore.
@@ -21,6 +21,11 @@ import numpy as np
from time import clock
from .parallel import multiThreadCommands, multiThreadCommandsFake
+# Ignore floating point "errors". Numpy calls it "errors", but really it's excep-
+# tions with well-defined answers such as 1.0/0.0 that is np.inf, -1.0/0.0 that is
+# -np.inf, np.inf/np.inf is np.nan and so on.
+np.seterr(all='ignore')
+
def distanceMetric(thing_A,thing_B):
'''
A "universal distance" metric that can be used as a default in many settings.
