From b1448a2703c69c169e864945a5015337ec572a5b Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann <82444481+jkuhl-uni@users.noreply.github.com> Date: Thu, 5 Dec 2024 22:08:48 +0100 Subject: [PATCH] Fix plateaus in correlator (#247) --- pyerrors/correlators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/correlators.py b/pyerrors/correlators.py index de1addfd..21a11533 100644 --- a/pyerrors/correlators.py +++ b/pyerrors/correlators.py @@ -862,7 +862,7 @@ def set_prange(self, prange): 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") - if not (0 <= prange[0] <= self.T and 0 <= prange[1] <= self.T and prange[0] < prange[1]): + if not (0 <= prange[0] <= self.T and 0 <= prange[1] <= self.T and prange[0] <= prange[1]): raise Exception("Start and end point must define a range in the interval 0,T") self.prange = prange