Closed roomrys closed 2 months ago
The changes involve significant modifications to the Monitor
class in the sleap/gui/widgets/monitor.py
file. Key alterations include the renaming of several public methods to private ones, enhancing encapsulation. New properties and private methods have been introduced, improving the organization of the class. These adjustments extend to the tests/gui/test_monitor.py
file, where method calls have been updated to reflect the new private method names, maintaining the overall control flow.
Files | Change Summary |
---|---|
sleap/gui/widgets/monitor.py |
Renamed public methods to private (e.g., close to _close , setup_zmq to _setup_zmq ); introduced new properties and private methods for better encapsulation and organization. |
tests/gui/test_monitor.py |
Updated method calls to reflect changes from public to private methods (e.g., update_runtime() to _update_runtime() ). |
In the burrow deep, where code does play,
A rabbit hops in joy today.
With methods tucked away so neat,
Our Monitor's now a tidy treat!
Encapsulated, clean, and bright,
Hooray for changes, what a delight! 🐰✨
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 49.54128%
with 55 lines
in your changes missing coverage. Please review.
Project coverage is 75.33%. Comparing base (
7ed1229
) to head (237da2b
). Report is 39 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
sleap/gui/widgets/monitor.py | 49.54% | 55 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
In a previous PR #1899, we had touched on the LossViewer code to replace the QtCharts dependency with matplotlib. While I was itching to refactor/organize the LossViewer class in that PR - I refrained to maintain scope.
This PR refactors the LossViewer class by renaming internal methods to use underscores and organizing methods with internal methods listed last. Note that we call the now-named
_update_runtime
externally in one of our tests, but otherwise it is an internal method.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
New Features
log_scale
andignore_outliers
for enhanced control over settings.Bug Fixes
Refactor
Monitor
class by renaming several public methods to private, enhancing internal structure and maintainability.