feat: gm alias for gamma_method also added to other classes.

This commit is contained in:
Fabian Joswig 2023-01-13 17:26:52 +00:00
parent 67568a21c2
commit b9cdebd442
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -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.

View file

@ -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'):