Helper to avoid problems with scipy 0.8.0 returning inf for -1
Scipy 0.8.0 (and possibly later) has regression of reporting ‘inf’s for negative boundary. Lets guard against it for now
Enter search terms or a module, class or function name.