write error for global fits
This commit is contained in:
parent
d17d0f251e
commit
5a153585ee
@ -439,7 +439,7 @@ class FitRoutine(object):
|
|||||||
|
|
||||||
# update parameter values
|
# update parameter values
|
||||||
for keys, p_value, err_value in zip(var_pars, p, err):
|
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_value = p_value
|
||||||
data.parameter[keys].scaled_error = err_value
|
data.parameter[keys].scaled_error = err_value
|
||||||
data.parameter[keys].namespace[keys] = data.parameter[keys].value
|
data.parameter[keys].namespace[keys] = data.parameter[keys].value
|
||||||
|
@ -223,7 +223,6 @@ class FitResult(Points):
|
|||||||
return self.nobs-self.nvar
|
return self.nobs-self.nvar
|
||||||
|
|
||||||
def pprint(self, statistics=True, correlations=True):
|
def pprint(self, statistics=True, correlations=True):
|
||||||
sstream = StringIO()
|
|
||||||
print('Fit result:')
|
print('Fit result:')
|
||||||
print(' model :', self.name)
|
print(' model :', self.name)
|
||||||
print(' #data :', self.nobs)
|
print(' #data :', self.nobs)
|
||||||
|
Loading…
Reference in New Issue
Block a user