X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=dunshire%2Foptions.py;h=a66abb7bc626f9793ec21b622b3b719ad5aa38cc;hb=0274de467062ab29d2a41d2a91ec0b28fcd95c8d;hp=976fe082421539ef118d73f9ee7ac8f077efa971;hpb=97b5f8d3892258376bde8479fa74212c01924a57;p=dunshire.git diff --git a/dunshire/options.py b/dunshire/options.py index 976fe08..a66abb7 100644 --- a/dunshire/options.py +++ b/dunshire/options.py @@ -15,17 +15,16 @@ improves the solubility of real problems is a question for the philosophers. """ - -FLOAT_FORMAT = '%.7f' +DEBUG_FLOAT_FORMAT = '%.20f' """ -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 float output format to use when something goes wrong. If we need to +reproduce a random test case, for example, then we need all of the digits +of the things involved. If we try to recreate the problem using only, +say, the first seven digits of each number, then the resulting game +might not reproduce the failure. """ - -VERBOSE = False +FLOAT_FORMAT = '%.7f' """ -The underlying CVXOPT solver can output debug information, and I -guess, so could we. But we don't want to because it's ugly. +The default output format for floating point numbers. """