From b9cdebd442de6ca737a20090d37c717a185b07b2 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 13 Jan 2023 17:26:52 +0000 Subject: [PATCH] feat: gm alias for gamma_method also added to other classes. --- pyerrors/correlators.py | 2 ++ pyerrors/fits.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index 736bcb7a..4f528ec8 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -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. diff --git a/pyerrors/fits.py b/pyerrors/fits.py index c7dac075..8e137e88 100644 --- a/pyerrors/fits.py +++ b/pyerrors/fits.py @@ -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'):