Private
Public Access
1
0

hotfix averaring in dataprep

This commit is contained in:
Sander Roosendaal
2017-12-13 19:13:26 +01:00
parent a31399f433
commit c6fe8ca705

View File

@@ -1937,7 +1937,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: