Private
Public Access
1
0

Merge tag 'v5.34' into develop

hotfix
This commit is contained in:
Sander Roosendaal
2017-12-13 19:29:09 +01:00

View File

@@ -1941,7 +1941,10 @@ def dataprep(rowdatadf, id=0, bands=True, barchart=True, otwpower=True,
f = rowdatadf['TimeStamp (sec)'].diff().mean()
if f != 0 and not np.isinf(f):
windowsize = 2 * (int(10. / (f))) + 1
try:
windowsize = 2 * (int(10. / (f))) + 1
except ValueError:
windowsize = 1
else:
windowsize = 1
if windowsize <= 3: