Skip to content

Commit 960332e

Browse files
author
André Böni
committed
+ bug fix progession vetor
+ code convention refactoring
1 parent b77e409 commit 960332e

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

README.rst

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Event Detection
6060
+------------+--------------------------+----------------------------------------------------------------------------+
6161
| Method | Description | options |
6262
+============+==========================+============================================================================+
63-
| Marker | based on Zenis 2006 | - height: The height of peaks for events. |
63+
| Marker | Zeni et al. 2008 [1] | - height: The height of peaks for events. |
6464
| | | - threshold: The threshold for detecting events. |
6565
| | | - distance: The min distance in frames between events. |
6666
| | | - rel_height: The relative height of peak for events. |
@@ -137,29 +137,38 @@ Feature calculation
137137
| | - swing_median | |
138138
| | - swing_amplitude | |
139139
+-------------------------+-------------------------------------------------------+---------------------------------------+
140-
| SpatialFeatures | - step_length [1] | |
141-
| | - stride_length [1] | |
140+
| SpatialFeatures | - step_length [2] | |
141+
| | - stride_length [2] | |
142+
| | - step_width [2] | |
143+
| | - minimal_toe_clearance [3] | |
142144
+-------------------------+-------------------------------------------------------+---------------------------------------+
143145
| TemporalFeatures | - cycle_duration | |
144146
| | - swing_duration_perc | |
145147
| | - stance_duration_perc | |
146-
| | - step_width [1] | |
147-
| | - cadence [1] | |
148-
| | - single_support_duration_percent [2] | |
149-
| | - double_support_duration_percent [2] | |
148+
| | - cadence [2] | |
149+
| | - single_support_duration_percent [4] | |
150+
| | - double_support_duration_percent [4] | |
150151
+-------------------------+-------------------------------------------------------+---------------------------------------+
151152

152153
References
153154
""""""""""
155+
[1] J. A. Zeni, J. G. Richards, and J. S. Higginson,
156+
“Two simple methods for determining gait events during treadmill and overground walking
157+
using kinematic data,” Gait and Posture, vol. 27, pp. 710–714, May 2008,
158+
doi: 10.1016/j.gaitpost.2007.07.007.
154159

155-
[1] J. H. Hollman, E. M. McDade, and R. C. Petersen, “Normative Spatiotemporal
160+
[2] J. H. Hollman, E. M. McDade, and R. C. Petersen, “Normative Spatiotemporal
156161
Gait Parameters in Older Adults,” Gait Posture, vol. 34, no. 1, pp. 111–118,
157162
May 2011, doi: 10.1016/j.gaitpost.2011.03.024.
158163

159-
[2] A. Gouelle and F. Mégrot (2017), “Interpreting spatiotemporal
160-
parameters, symmetry, and variability in clinical gait analysis”,
161-
Handbook of Human Motion pp. 1-20, Publisher: Springer International
162-
Publishing.
164+
[3] B. W. Schulz, “A new measure of trip risk integrating minimum foot clearance and
165+
dynamic stability across the swing phase of gait,” Journal of Biomechanics,
166+
vol. 55, pp. 107–112, Apr. 2017, doi: 10.1016/j.jbiomech.2017.02.024.
167+
168+
[4] A. Gouelle and F. Mégrot, “Interpreting Spatiotemporal Parameters, Symmetry,
169+
and Variability in Clinical Gait Analysis,” Handbook of Human Motion,
170+
pp. 1–20, 2016, doi: 10.1007/978-3-319-30808-1_35-1.
171+
163172

164173
Quickstart
165174
----------

gaitalytics/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def _calculate(self, trial: model.Trial) -> xr.DataArray:
565565
marker_dict["contra_ankle"] is not None
566566
):
567567
results_dict.update(
568-
self._calculate_ML_margin_of_stability(
568+
self._calculate_ml_margin_of_stability(
569569
trial,
570570
marker_dict["ipsi_ankle"],
571571
marker_dict["contra_ankle"],
@@ -867,7 +867,7 @@ def _calculate_ap_margin_of_stability(
867867

868868
return {"AP_margin_of_stability": mos}
869869

870-
def _calculate_ML_margin_of_stability(
870+
def _calculate_ml_margin_of_stability(
871871
self,
872872
trial: model.Trial,
873873
ipsi_ankle_marker: mapping.MappedMarkers,

0 commit comments

Comments
 (0)