bug fix
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user