From 3b0a8af1aa01c7994755fa8cc4bd64a66dfa8149 Mon Sep 17 00:00:00 2001 From: Wirawan Purwanto Date: Fri, 28 Mar 2014 14:29:10 -0400 Subject: [PATCH] * Added MathWarning for mathematics-related warning messages. --- math/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/math/__init__.py b/math/__init__.py index b2569b4..bef6244 100644 --- a/math/__init__.py +++ b/math/__init__.py @@ -8,8 +8,16 @@ pass import numpy + +class MathWarning(Warning): + """Base class for mathematics-related warnings for wpylib library. + """ + + + ZERO_TOL = 5.0e-16 + def ztol(val, tol=None, copy=True): """Rounds down values to zero if they are below tolerance.""" if tol == None: tol = ZERO_TOL