mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-14 22:30:25 +01:00
Fix plateaus in correlator (#247)
This commit is contained in:
parent
30bfb55981
commit
b1448a2703
1 changed files with 1 additions and 1 deletions
|
@ -862,7 +862,7 @@ class Corr:
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue