Skip to content

Commit

Permalink
fix typo and don't visualize segmentation for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
carmichaelong committed Jun 10, 2024
1 parent f2e2e79 commit d5c77a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squat_analysis/function/squat_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, session_dir, trial_name, n_repetitions=-1,
raise Exception('Time vectors of marker and coordinate data are not the same.')

if not np.allclose(self.bodyTransformDict['time'], self.coordinateValues['time'], atol=.001, rtol=0):
raise Exception('Time vectors of body transofrms and coordinate data are not the same.')
raise Exception('Time vectors of body transforms and coordinate data are not the same.')

# Trim marker, body transforms, and coordinate data.
if self.trimming_start > 0:
Expand All @@ -88,7 +88,7 @@ def __init__(self, session_dir, trial_name, n_repetitions=-1,
self.coordinateValues = self.coordinateValues.iloc[:self.idx_trim_end]

# Segment squat repetitions.
self.squatEvents = self.segment_squat(n_repetitions=n_repetitions, visualizeSegmentation=True)
self.squatEvents = self.segment_squat(n_repetitions=n_repetitions, visualizeSegmentation=False)
self.nRepetitions = np.shape(self.squatEvents['eventIdxs'])[0]

# Initialize variables to be lazy loaded.
Expand Down

0 comments on commit d5c77a2

Please sign in to comment.