Skip to content

Commit 6944260

Browse files
committed
Fix bug in spatial features calculation
1 parent 93c80e0 commit 6944260

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gaitalytics/features.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ class SpatialFeatures(_PointDependentFeature):
480480
"""
481481

482482
def _calculate(self, trial: model.Trial) -> xr.DataArray:
483+
483484
"""Calculate the spatial features for a trial.
484485
485486
Definitions of the spatial features
@@ -502,8 +503,8 @@ def _calculate(self, trial: model.Trial) -> xr.DataArray:
502503
ipsi_marker = mapping.MappedMarkers.R_TOE
503504
contra_marker = mapping.MappedMarkers.L_TOE
504505
else:
505-
ipsi_marker = mapping.MappedMarkers.R_TOE
506-
contra_marker = mapping.MappedMarkers.L_TOE
506+
ipsi_marker = mapping.MappedMarkers.L_TOE
507+
contra_marker = mapping.MappedMarkers.R_TOE
507508

508509
results_dict = self._calculate_step_length(trial, ipsi_marker, contra_marker)
509510
results_dict.update(

0 commit comments

Comments
 (0)