mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 14:50:25 +01:00
feat: gm alias for gamma_method also added to other classes.
This commit is contained in:
parent
67568a21c2
commit
b9cdebd442
2 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,8 @@ class Corr:
|
|||
for j in range(self.N):
|
||||
item[i, j].gamma_method(**kwargs)
|
||||
|
||||
gm = gamma_method
|
||||
|
||||
def projected(self, vector_l=None, vector_r=None, normalize=False):
|
||||
"""We need to project the Correlator with a Vector to get a single value at each timeslice.
|
||||
|
||||
|
|
|
@ -46,6 +46,8 @@ class Fit_result(Sequence):
|
|||
"""Apply the gamma method to all fit parameters"""
|
||||
[o.gamma_method(**kwargs) for o in self.fit_parameters]
|
||||
|
||||
gm = gamma_method
|
||||
|
||||
def __str__(self):
|
||||
my_str = 'Goodness of fit:\n'
|
||||
if hasattr(self, 'chisquare_by_dof'):
|
||||
|
|
Loading…
Add table
Reference in a new issue