viswanani commited on
Commit
2fa5e6c
·
verified ·
1 Parent(s): a4c5608

Update bounce.py

Browse files
Files changed (1) hide show
  1. bounce.py +1 -0
bounce.py CHANGED
@@ -5,3 +5,4 @@ def detect_bounce(trajectory):
5
  dy = np.diff(ys)
6
  bounce_index = np.argmax(dy > 15) if np.any(dy > 15) else None
7
  return int(bounce_index) if bounce_index is not None else None
 
 
5
  dy = np.diff(ys)
6
  bounce_index = np.argmax(dy > 15) if np.any(dy > 15) else None
7
  return int(bounce_index) if bounce_index is not None else None
8
+