Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
masoudabedinifar committed Oct 1, 2024
2 parents 7374b85 + a86d8a4 commit 50226c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kielmat/modules/gsd/_paraschiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ def detect(
# Plot results if set to true
if plot_results:
# Convert detected_activity_signal from g back to m/s^2 for consistency
detected_activity_signal *=9.81
detected_activity_signal *= 9.81

viz_utils.plot_gait(
target_sampling_freq_Hz, detected_activity_signal, gait_sequences_
)
Expand Down
4 changes: 3 additions & 1 deletion kielmat/test/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ def test_invalid_dt_data_type():
}
)
with pytest.raises(ValueError):
gsd.detect(accel_data=acceleration_data, sampling_freq_Hz=100, dt_data="not_a_series")
gsd.detect(
accel_data=acceleration_data, sampling_freq_Hz=100, dt_data="not_a_series"
)


# Test for ValueError: "dt_data must be a series with the same length as data"
Expand Down

0 comments on commit 50226c0

Please sign in to comment.