Skip to content

Commit

Permalink
fix bug remove
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinefalisse committed Jul 30, 2024
1 parent a1d7678 commit e0bf5b3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
12 changes: 8 additions & 4 deletions gait_analysis/function/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ def handler(event, context):
# Available options for line curve chart.
y_axes = list(colNames)
y_axes.remove('time')
y_axes.remove('knee_angle_r_beta')
y_axes.remove('knee_angle_l_beta')
y_axes.remove('mtp_angle_r')
y_axes.remove('mtp_angle_l')
if 'knee_angle_r_beta' in y_axes:
y_axes.remove('knee_angle_r_beta')
if 'knee_angle_l_beta' in y_axes:
y_axes.remove('knee_angle_l_beta')
if 'mtp_angle_r' in y_axes:
y_axes.remove('mtp_angle_r')
if 'mtp_angle_l' in y_axes:
y_axes.remove('mtp_angle_l')

# Create results dictionnary.
results = {
Expand Down
12 changes: 8 additions & 4 deletions squat_analysis/function/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,14 @@ def handler(event, context):
# Available options for line curve chart.
y_axes = list(colNames)
y_axes.remove('time')
y_axes.remove('knee_angle_r_beta')
y_axes.remove('knee_angle_l_beta')
y_axes.remove('mtp_angle_r')
y_axes.remove('mtp_angle_l')
if 'knee_angle_r_beta' in y_axes:
y_axes.remove('knee_angle_r_beta')
if 'knee_angle_l_beta' in y_axes:
y_axes.remove('knee_angle_l_beta')
if 'mtp_angle_r' in y_axes:
y_axes.remove('mtp_angle_r')
if 'mtp_angle_l' in y_axes:
y_axes.remove('mtp_angle_l')

# Create results dictionary.
results = {
Expand Down
12 changes: 8 additions & 4 deletions treadmill_gait_analysis/function/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,14 @@ def handler(event, context):
# Available options for line curve chart.
y_axes = list(colNames)
y_axes.remove('time')
y_axes.remove('knee_angle_r_beta')
y_axes.remove('knee_angle_l_beta')
y_axes.remove('mtp_angle_r')
y_axes.remove('mtp_angle_l')
if 'knee_angle_r_beta' in y_axes:
y_axes.remove('knee_angle_r_beta')
if 'knee_angle_l_beta' in y_axes:
y_axes.remove('knee_angle_l_beta')
if 'mtp_angle_r' in y_axes:
y_axes.remove('mtp_angle_r')
if 'mtp_angle_l' in y_axes:
y_axes.remove('mtp_angle_l')

# Create results dictionnary.
results = {
Expand Down

0 comments on commit e0bf5b3

Please sign in to comment.