mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
Merge branch 'develop' into documentation
This commit is contained in:
commit
c5f004dd67
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")
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue