X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fdunshire%2Foptions.py;h=c6e5c4cb079edfc7149ee8179137fb7f61975e84;hb=23a5893ede3a22653128d3e7a66fb3f6b80616b8;hp=03518d812bfb6488b7e382539accd879b8baba73;hpb=d88f8b35c30a8782e7be407bfd1ffdcdae5ed4a6;p=dunshire.git diff --git a/src/dunshire/options.py b/src/dunshire/options.py index 03518d8..c6e5c4c 100644 --- a/src/dunshire/options.py +++ b/src/dunshire/options.py @@ -4,15 +4,25 @@ underlying engine." Just kidding, they're constants and you can't change them. But this makes the user interface real simple. """ -# The absolute tolerance used in all "are these numbers equal" and "is -# this number less than (or equal to) that other number" tests. -ABS_TOL = 1e-7 -# The default output format for floating point numbers. It has been -# chosen to match the ABS_TOL, in the sense that if x != y, then they -# would not appear different when printed. +ABS_TOL = 1e-6 +""" +The absolute tolerance used in all "are these numbers equal" and "is +this number less than (or equal to) that other number" tests. The CVXOPT +default is ``1e-7``, and we need a little bit of padding on top of that. +""" + + FLOAT_FORMAT = '%.7f' +""" +The default output format for floating point numbers. It has been +chosen to match the ``ABS_TOL``, in the sense that if ``x != y``, +then they would not appear different when printed. +""" + -# The underlying CVXOPT solver can output debug information, and I -# guess, so could we. But we don't want to because it's ugly. VERBOSE = False +""" +The underlying CVXOPT solver can output debug information, and I +guess, so could we. But we don't want to because it's ugly. +"""