Closed keyaloding closed 4 months ago
This update focuses on enhancing the trail length options in the SLEAP application. It introduces customizable trail lengths based on user preferences, updates the Track
class to accommodate new length options, adjusts the GUI documentation to reflect these changes, and ensures that the trail length is consistently managed in the app and preferences files.
File(s) | Change Summary |
---|---|
sleap/gui/overlays/tracks.py |
Expanded Track.get_length_options to include user-defined trail length preferences and additional lengths |
docs/guides/gui.md |
Updated documentation to describe new trail length options and caution about potential lag |
sleap/gui/app.py |
Modified __init__ , closeEvent , and _load_overlays methods to handle the new trail_length parameter |
sleap/prefs.py |
Enhanced load_ method to set default trail length preference if not present |
sequenceDiagram
participant User
participant Preferences
participant App
participant Track
User->>Preferences: Set custom trail length in preferences.yaml
Preferences-->>App: Load preferences with custom trail length
App->>Track: Initialize with new trail length options
Track-->>App: Provide trail length options including custom length
App->>User: Display updated trail length options in GUI
In trails of code, the changes bloom,
Lengths extended, no more gloom.
Preferences set, the trail is seen,
A custom path, a coder's dream.
The GUI sings, with options bright,
New lengths to track, a joyous sight.
🎨🐇 In trails we trust, our paths alight! 🌟
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?
Attention: Patch coverage is 66.66667%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 74.15%. Comparing base (
7ed1229
) to head (91e38f1
). Report is 17 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
sleap/gui/overlays/tracks.py | 66.66% | 1 Missing :warning: |
sleap/prefs.py | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Right now, the maximum trail length that the GUI displays to the user is 250 frames. I updated the GUI and
sleap/prefs.py
so that the user can select a custom trail length by modifyingprefences.yaml
. The trail length is now stored as an attribute ofMainWindow
. The custom length now appears in the GUI. I have tested this with various trail lengths, including trail lengths longer than the number of frames in the video and I have not experienced any issues. I also updated the GUI documentation so that the user is aware of this feature.Types of changes
Does this address any currently open issues?
1769
1818
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
New Features
Documentation
Bug Fixes