-
Notifications
You must be signed in to change notification settings - Fork 23
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/detect format function #144
Feature/detect format function #144
Conversation
…pose into sign-language-processing-master
OK, I've updated throughout Various functions had various levels of support for the different types. I've gone through and tried to make it more consistent, such that
|
OK, ready for the next round, I believe.
|
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.
Very cool, thank you :)
need to only fix the tests.
instead of from pose_format import Pose
i think it needs from pose_format.pose import Pose
Taking a crack at fixing the tests. They run on my machine with python 3.10, but crash when run on github on 3.8. Why? Error:The error in question:
Files
Ah, perhaps conftest.py? It had:
what if I change everywhere?
What if I trace the error more closely?Here's the error output:
That genuinely is a circular import! OK, so we can't use pose_format.utils.generic in pose_format.pose.pose, because pose_format.utils.generic imports pose_format.pose... how to fix this? |
I'm kinda stumped by this pose import circle. Which I think I introduced actually, with the "quick and simple" PR where pose.normalize() would call it by default. Pose imports utils.generic to get pose_normalization_info Where I'm stuck:
|
Fixed the circular issue at 56e6717 |
That'll do it! |
Pipe annotations causing failuresOK, latest problem is with the pipe type annotations, which prior to 3.10 will throw errors. https://peps.python.org/pep-0604/ I can either remove all those, or we drop support for 3.8 and 3.9 NotImplementedErrorsTests for versions 3.10-3.12 are currently expected to fail with NotImplementedErrors. We can either leave them failing as a reminder to implement, or just add a with pytest.raises to catch those. |
I susggest we use Union instead of the pipe, to support older versions |
…Also added a function to check fake_pose and its outputs
While trying to get tests to pass, I discovered two problems with correct_wrist:
|
All tests now green on my machine! |
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.
great! thanks for the hard work :)
DRAFT PR:
Adding a function to fix #142. Still TODO: