Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-10-19 18:28:34 +02:00
parent f81d934739
commit a747d47fed

View File

@@ -173,7 +173,10 @@ def create_c2_stroke_data_db(
except ZeroDivisionError:
spm = 20*np.zeros(nr_strokes)
step = totalseconds/float(nr_strokes)
try:
step = totalseconds/float(nr_strokes)
except ZeroDivisionError:
return 0
elapsed = np.arange(nr_strokes)*totalseconds/(float(nr_strokes-1))