From 422c30e9b6d64bf9f3af9696e8518be198e5b6dc Mon Sep 17 00:00:00 2001 From: marco cammarata Date: Fri, 31 Mar 2017 18:01:46 +0200 Subject: [PATCH] in iminuitParsToStr, fixed python 3 related bug (dict.keys does not return a list) --- mcutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcutils.py b/mcutils.py index 8a25810..7972ca9 100644 --- a/mcutils.py +++ b/mcutils.py @@ -1072,7 +1072,7 @@ def iminuitClass(modelFunc): def iminuitParsToStr(iminuit,withErrs=True,withFixed=True): values = iminuit.values errs = iminuit.errors - pnames = values.keys() + pnames = list(values.keys()) lenParNames = max( [len(p) for p in pnames] ) fmt = "%%%ds" % lenParNames pnames.sort()