diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index 5f238328..f50c0565 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -142,6 +142,7 @@ class Corr: raise Exception("Corr could not be symmetrized: No redundant values") return Corr(newcontent, prange=self.prange) + def anti_symmetric(self): if self.T%2 != 0: @@ -341,19 +342,18 @@ class Corr: else: raise Exception("Unsupported plateau method: " + method) - def set_prange(self, prange): if not len(prange)==2: - raise Exception("range must be a list or array with two values") + raise Exception("prange must be a list or array with two values") if not ((isinstance(prange[0],int)) and (isinstance(prange[1],int))): - raise Exception("start and end point must be integers") + raise Exception("Start and end point must be integers") if not (0<=prange[0]<=self.T and 0<=prange[1]<=self.T and prange[0]