in iminuitParsToStr, fixed python 3 related bug (dict.keys does not return a list)

This commit is contained in:
marco cammarata 2017-03-31 18:01:46 +02:00
parent d8b5441166
commit 422c30e9b6
1 changed files with 1 additions and 1 deletions

View File

@ -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()