1
0
forked from IPKM/nmreval

write error for global fits

This commit is contained in:
Dominik Demuth 2023-08-29 19:11:56 +02:00
parent d17d0f251e
commit 5a153585ee
2 changed files with 1 additions and 2 deletions

View File

@ -439,7 +439,7 @@ class FitRoutine(object):
# update parameter values
for keys, p_value, err_value in zip(var_pars, p, err):
if keys in data.parameter:
if keys in data.parameter.keys():
data.parameter[keys].scaled_value = p_value
data.parameter[keys].scaled_error = err_value
data.parameter[keys].namespace[keys] = data.parameter[keys].value

View File

@ -223,7 +223,6 @@ class FitResult(Points):
return self.nobs-self.nvar
def pprint(self, statistics=True, correlations=True):
sstream = StringIO()
print('Fit result:')
print(' model :', self.name)
print(' #data :', self.nobs)