fix: Fit_result.gamma_method can now be called with kwargs

This commit is contained in:
Fabian Joswig 2022-06-06 15:04:16 +01:00
parent 0b6b98990d
commit 6bd724715f

View file

@ -34,9 +34,9 @@ class Fit_result(Sequence):
def __len__(self):
return len(self.fit_parameters)
def gamma_method(self):
def gamma_method(self, **kwargs):
"""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):
my_str = 'Goodness of fit:\n'