Closed ramizhajj1 closed 5 months ago
[!IMPORTANT]
Review skipped
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository. To trigger a single review, invoke the@coderabbitai review
command.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes introduce significant new functionality and updates across multiple aspects of the project. Key updates include the addition of session and instance group management in the GUI, handling of OpenCV package installations, and improvements to testing and documentation. These enhancements aim to improve the user experience, streamline package management, and ensure robust testing of new features.
Files/Groups | Change Summary |
---|---|
.conda/bld.bat , .conda/build.sh , .conda_mac/build.sh |
Uninstall all OpenCV packages and install opencv-contrib-python<4.7.0 using pip. |
.github/workflows/ci.yml |
Added a step to reinstall the correct version of OpenCV; updated comment for clarity. |
dev_requirements.txt |
Added a comment to clarify the purpose of pytest-xvfb for running tests without UI. |
docs/installation.md |
Added a non-recommended "terrible hack" section involving conda and pip commands for development purposes. |
requirements.txt |
Updated to include sleap-anipose and instructions for managing OpenCV packages. |
sleap/gui/app.py , sleap/gui/commands.py , sleap/gui/dataviews.py , sleap/gui/dialogs/delete.py , sleap/gui/shortcuts.py , sleap/gui/widgets/docks.py , sleap/gui/widgets/video.py |
Added new functionality and methods related to sessions and instance groups, updated GUI state handling, and improved point update logic. |
sleap/instance.py |
Enhanced method functionalities, logging, and class inheritance for better point and instance management. |
sleap/io/dataset.py |
Enhanced caching and management of labeled frame data and recording sessions. |
sleap/io/format/hdf5.py , sleap/io/format/labels_json.py , sleap/io/video.py |
Improved import handling, deserialization, and documentation. |
sleap/util.py |
Added deep conversion of iterables and improved JSON decoding. |
tests/conftest.py , tests/fixtures/cameras.py , tests/fixtures/datasets.py |
Added fixtures for cameras, sessions, and datasets to support new testing scenarios. |
tests/gui/test_app.py , tests/gui/test_commands.py , tests/gui/test_dataviews.py , tests/gui/widgets/test_docks.py |
Added and updated test functions to cover new GUI and command functionalities. |
tests/io/test_cameras.py , tests/io/test_dataset.py |
Added test functions for camera-related data structures and session manipulation within labels. |
sequenceDiagram
participant User
participant GUI
participant Commands
participant DataCache
participant Labels
User->>GUI: Add Session
GUI->>Commands: addSession()
Commands->>DataCache: add_recording_session()
DataCache->>Labels: add_session()
Labels->>DataCache: update_cache()
DataCache-->>GUI: Session Added
User->>GUI: Triangulate Session
GUI->>Commands: triangulateSession()
Commands->>DataCache: triangulate_instances()
DataCache-->>GUI: Triangulation Complete
In code we weave, where sessions thrive,
With OpenCV, our apps come alive.
A GUI bright, for tasks so light,
Commands and tests, all set just right.
A rabbit's joy, in code's employ,
To build and fix, with seamless ploy.
🐇✨
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 42.85714%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 74.10%. Comparing base (
f9858ad
) to head (08117b8
).:exclamation: Current head 08117b8 differs from pull request most recent head b3960ea
Please upload reports for the commit b3960ea to get more accurate results.
Files | Patch % | Lines |
---|---|---|
sleap/gui/app.py | 42.85% | 4 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Includes modifications to the switch_frame function and the GoAdjacentView class in the sleap/gui/app.py file. The changes ensure that when switching videos, the application attempts to maintain the current frame index if the new video has enough frames
Types of changes
Does this address any currently open issues?
[list open issues here]
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart: