mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
fix: bug occurring when Corr.fit is called without fit range fixed
This commit is contained in:
parent
5c9a521c29
commit
083247389b
1 changed files with 1 additions and 1 deletions
|
@ -443,7 +443,7 @@ class Corr:
|
||||||
if self.prange:
|
if self.prange:
|
||||||
fitrange = self.prange
|
fitrange = self.prange
|
||||||
else:
|
else:
|
||||||
fitrange = [0, self.T]
|
fitrange = [0, self.T - 1]
|
||||||
|
|
||||||
xs = [x for x in range(fitrange[0], fitrange[1] + 1) if not self.content[x] is None]
|
xs = [x for x in range(fitrange[0], fitrange[1] + 1) if not self.content[x] is None]
|
||||||
ys = [self.content[x][0] for x in range(fitrange[0], fitrange[1] + 1) if not self.content[x] is None]
|
ys = [self.content[x][0] for x in range(fitrange[0], fitrange[1] + 1) if not self.content[x] is None]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue