From acf2cbcb183bc6fa1133586ca1ea7d47cac642bc Mon Sep 17 00:00:00 2001 From: Matthew Newville Date: Sun, 11 Feb 2018 07:01:51 -0600 Subject: [PATCH] increase default precision for chi-square, etc from 3 to 5 --- lmfit/printfuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmfit/printfuncs.py b/lmfit/printfuncs.py index c5b1cf62f..59492af14 100644 --- a/lmfit/printfuncs.py +++ b/lmfit/printfuncs.py @@ -12,7 +12,7 @@ def alphanumeric_sort(s, _nsre=re.compile('([0-9]+)')): for text in re.split(_nsre, s)] -def getfloat_attr(obj, attr, fmt='%.3f'): +def getfloat_attr(obj, attr, fmt='%.5f'): """Format an attribute of an object for printing.""" val = getattr(obj, attr, None) if val is None: