Closed Arthurmayo closed 4 months ago
The changes enhance components within the SLEAP's graphical user interface functionalities. Adjustments to set_visible_nodes
in commands.py
refine the coordinate handling for visible nodes. Meanwhile, a modification in the initialization function of video.py
ensures that the selectable
attribute is persistently set to true, simplifying conditional logic.
File | Change Summary |
---|---|
sleap/gui/commands.py |
Adjusted set_visible_nodes to modify x and y coordinates based on conditions for PredictedInstance . |
sleap/gui/widgets/video.py |
Changed __init__ function to set self.selectable to True unconditionally. |
sequenceDiagram
participant User
participant GUI
participant set_visible_nodes
User->>GUI: Initiate node visibility setting
GUI->>set_visible_nodes: Call set_visible_nodes with instances
Note over set_visible_nodes: Adjust x, y based on conditions <br> for PredictedInstance
set_visible_nodes-->>GUI: Return adjusted node visibility
GUI-->>User: Display updated nodes
Note over User, GUI: Setting selectable attribute in video
User->>GUI: Initiate video widget creation
GUI->>VideoWidget: Call __init__
Note over VideoWidget: Set self.selectable to True
VideoWidget-->>GUI: Completed instantiation
GUI-->>User: Display video widget
In a world of nodes that gleam and glow,
Coordinates align in a perfect row,
Widgets now selectable at every twist,
Simplicity and clarity—none can resist.
Through the codes, updates come to light,
Making our GUI a seamless delight. 🌟🐰
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are always opted into early access features.
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 74.10%. Comparing base (
7ed1229
) to head (0afedc1
). Report is 18 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closing this PR in favor of:
Description
A new instance is created 10 pixels away from the instance it is copying from. This allows for faster labeling.
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