Skip to content

Commit

Permalink
very small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuhl-uni committed Dec 5, 2024
1 parent 30bfb55 commit 3d51f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyerrors/correlators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d51f31

Please sign in to comment.