mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: Fit_result.gamma_method can now be called with kwargs
This commit is contained in:
parent
0b6b98990d
commit
6bd724715f
1 changed files with 2 additions and 2 deletions
|
@ -34,9 +34,9 @@ class Fit_result(Sequence):
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return len(self.fit_parameters)
|
return len(self.fit_parameters)
|
||||||
|
|
||||||
def gamma_method(self):
|
def gamma_method(self, **kwargs):
|
||||||
"""Apply the gamma method to all fit parameters"""
|
"""Apply the gamma method to all fit parameters"""
|
||||||
[o.gamma_method() for o in self.fit_parameters]
|
[o.gamma_method(**kwargs) for o in self.fit_parameters]
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
my_str = 'Goodness of fit:\n'
|
my_str = 'Goodness of fit:\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue