Closed shrivaths16 closed 4 months ago
The recent changes enhance the SLEAP software by adding a method to open the preferences directory and improving how configuration files are handled. In the GUI, new functions and menu items facilitate easier access to user preferences. In the utilities, the path handling and directory creation for config files have been refactored for better efficiency and readability.
File | Change Summary |
---|---|
sleap/gui/app.py | Added functionality to open the preference file directory using a new method openPrefs and updated the resetPrefs method to include a new menu item. |
sleap/util.py | Refactored the get_config_file function for improved file path handling, directory creation, and consistency using Path objects. |
sequenceDiagram
participant User
participant GUI as SLEAP GUI
participant OS as Operating System
User->>+GUI: Trigger "Open Preferences Directory"
GUI->>+OS: Execute subprocess to open directory
OS-->>-GUI: Directory opened
GUI-->>-User: Preferences directory is now accessible
In code so neat, the prefs unfold,
A place for settings, new and old.
With refactored paths and better flow,
Configs are found, just so you know.
From GUI click to file's embrace,
SLEAP now runs with graceful pace. 🌟🐇
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 60.00000%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 74.13%. Comparing base (
7ed1229
) to head (1d85af5
). Report is 19 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
sleap/gui/app.py | 38.46% | 8 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Right now, users are finding it a bit difficult to find the
preferences.yaml
file that stores the user preferences. Hence, adding a menu option to open the File Explorer (Windows)/Finder (MacOS)/Linux at thepreferences.yaml
directory.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