Fix plateaus in correlator (#247)

This commit is contained in:
Justus Kuhlmann 2024-12-05 22:08:48 +01:00 committed by GitHub
parent 30bfb55981
commit b1448a2703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -862,7 +862,7 @@ class Corr:
raise Exception("prange 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))): 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] < 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") raise Exception("Start and end point must define a range in the interval 0,T")
self.prange = prange self.prange = prange