-
Notifications
You must be signed in to change notification settings - Fork 56
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
Calculate height for marker augmenatation #152
Conversation
Oh no, it seems there's an issue with pytest. This error occurred when all frames were filtered. I'll investigate why all the values were excluded and make the necessary corrections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
- Great stuff!
- It does not matter what the default value is, but it is probably more important to call the function with the right values. And I'd rather have the exact same functions on both toolboxes. So L133, you should specify the right values instead of taking the default ones. Instead of
height = compute_height(Q_coords_filtered, filtered_markers)
,
it should be
height = compute_height(Q_coords_filtered, filtered_markers, fastest_frames_to_remove_percent=fastest_frames_to_remove_percent, close_to_zero_speed=close_to_zero_speed, large_hip_knee_angles=large_hip_knee_angles, trimmed_extrema_percent=trimmed_extrema_percent)
- Okay! I suggested something different in the last commit for best_coords_for_measurements, could you check if it works?
I am not sure lines 115 to 131 are needed in markerAugmentation, can you try without them?
It would be nice to have the option of setting the height automatically or not indeed! And I think that heights and weights should now be moved to the [markerAugmentation] section in Config.toml.
When everything works, it would be good to remove all the prints!
Sorry I commented too fast on my last comment! |
…creasing close_to_zero_speed_m.
It seems like it passes the tests now, congrats! 🎉 Does it seem like it works as expected on your end? A few minor remarks:
|
Hello, Dr. David, I apologize for the delayed response. I wanted to reply after completing the revisions, but some unexpected tasks came up, and I could only respond now. From my tests, everything functioned as we discussed. Below are my responses to your latest review and suggestions:
|
I understand! Thank you for reviewing it again. I'll apply all the other suggestions! |
I was wondering, do you think the 'mean_angles' function could also be moved into common.py? Edit: Oops, I'm sorry! The function depends on angle_dict, so moving the 'mean_angles' function might make things messy. |
Hello, now everything works fine as I expected. |
Hello, Dr. David,
Here are some modifications related to marker augmentation. All of these changes were implemented using your existing excellent functions!
And I have commented out the part in the current config that loads subject_height. If you prefer complete automation without user input, I will remove it. On the other hand, if you would like automatic height calculation to occur only when set to 'auto,' I can make some adjustments accordingly.
Additionally, parameters such as close_to_zero_speed_m, large_hip_knee_angle, and trimmed_extrema_percent can be loaded from the config to ensure that the default values are not the only ones being used.
Thank you!