Private
Public Access
1
0

small improvements

This commit is contained in:
Sander Roosendaal
2019-04-03 22:22:40 +02:00
parent 9fb2523b9a
commit 0ff24d8aee
3 changed files with 20 additions and 13 deletions

View File

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