Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Step Timings #46

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

aidanacquah
Copy link
Contributor

This introduces a new feature, in which a csv is outputted for the time of each detected step.

Note that to do so, this has also:

  • Reformatted code according to Black code formatter
  • Refactored code to count peaks by now using the function to find the peak timings and counting for each batch

I have successfully tested this on a sample file by running: stepcount sample.csv --step-timings
I have not updated any package versions until confirmation from @chanshing

@chanshing chanshing force-pushed the feature-step-timings branch from 5c904de to d77150d Compare December 21, 2023 17:07
Update predict_from_frame method to return walk windows and step timestamps.
Update main function to output step timestamps.

Co-authored-by: aidanacquah
@chanshing chanshing force-pushed the feature-step-timings branch from d77150d to fb445af Compare December 21, 2023 17:12
@chanshing
Copy link
Member

chanshing commented Dec 21, 2023

Awesome Aidan!

I had to fix some bugs in how the timestamps were selected (it was selecting T windows regardless of whether they were walking T windows) but main ideas were there. Also had to undo the huge reformatting as otherwise it was painful to review. Finally, I made it the default to output the timestamps file.

Thank you very much!

@chanshing chanshing merged commit 794b79e into OxWearables:main Dec 21, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants