Closed roomrys closed 7 months ago
The recent updates focus on enhancing video linkage within the SLEAP application. Key improvements include adding checks and updates for unlinked videos, enabling a "link video" button, and updating models and tables for better management of video sessions. Additionally, a new command for linking videos to sessions has been introduced, along with minor adjustments and test enhancements to ensure smooth functionality.
Files | Summary |
---|---|
.../gui/app.py |
Enhanced video linkage with checks, button enabling, and cache updates. |
.../gui/widgets/docks.py |
Introduced unlinked videos model, table, and link button creation. |
.../gui/commands.py |
Added linkVideoToSession method for video-session linkage. |
.../gui/dataviews.py |
Minor whitespace adjustments. |
.../io/dataset.py |
Added video linkage tracking and updated session-video linkage methods. |
tests/gui/widgets/test_docks.py |
Added tests for unlinked videos' functionality in the SessionsDock. |
In the digital meadow, under the code-blue sky,
A rabbit hopped, with a gleam in its eye.
"Link videos!" it cried, with joy so profound,
For unlinked videos, a solution was found.
🐰💻🎥
With each push and pull, in the code they weave,
A tapestry of links, in SLEAP, they achieve.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 73.84%. Comparing base (
79f7fba
) to head (a2a4886
). Report is 142 commits behind head on liezl/add-gui-elements-for-sessions.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Very similar steps to
SessionsTable
(#1654) andCamerasTable
(#1671) (to be filled in), except for these few items:{linked: ..., unlinked: ...}
toLabelsDataCache
that remembers which videos are linked/unlinked to aRecordingSession
inlabels.sessions
(this dictionary will be used for the items in theUnlinkedVideosTable
)CommandContext.link_video_to_camera
method to link aVideo
to aRecordingSession
CommandContext
method created above)Types of changes
Does this address any currently open issues?
[list open issues here]
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit