-
-
Notifications
You must be signed in to change notification settings - Fork 138
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
Fix incorrect argument when visualizing from tray #780
Fix incorrect argument when visualizing from tray #780
Conversation
@abrichr Can you please review this PR? |
@shashank40 can you please clarify exactly what error you were experiencing before this change? Console output and screenshots would be very helpful 🙏 |
@abrichr So basically when we click on replay recordings from the app-tray, our visualize function gets an argument recording_id, but out function definition has recording(of type Recording as the first argument) Now due to this type mismatch, we tend to fetch id(or any other attribute) from variable of type Now after moving recording_id variable up in visualize main function, recording_id will be passed correctly and the app would work correctly. |
Thank you for clarifying @shashank40 ! I believe the fix should be here: https://github.com/OpenAdaptAI/OpenAdapt/blob/main/openadapt/app/tray.py#L247 If you undo your changes to |
45cc5be
to
30863c5
Compare
Done @abrichr |
Changed order in tray.py
30863c5
to
2336d13
Compare
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.
LGTM!
Only you can merge the PR @abrichr 😅 Also if you can take a look at my other 2 PRs. Will merge these 2 functionalities as well |
@shashank40 was just waiting for tests to run, then got distracted 😅 . Will merge ASAP. |
What kind of change does this PR introduce?
Fixing user app replay
Summary
When replaying the video in user app, it always fails with error type
int
as no valueid
, reason being that recording_id was passed to recording. Fixed that in this PRChecklist
How can your code be run and tested?
Other information