-
Notifications
You must be signed in to change notification settings - Fork 20
Interface overhaul #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Preview page for your plugin is ready here: |
Codecov Report
@@ Coverage Diff @@
## main #28 +/- ##
===========================================
+ Coverage 37.59% 55.21% +17.61%
===========================================
Files 38 44 +6
Lines 3511 4211 +700
===========================================
+ Hits 1320 2325 +1005
+ Misses 2191 1886 -305
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
looking forward to reviewing! It's a big one (with some conflicts, so maybe rebase to main first?) Also good to have Tim test the user experience? |
@MMathisLab I will fix the conflicts when merging, I've already included most of the changes from main manually. I'll ask Tim as well, thank you! |
|
but can you please rebase before I review it? see basecamp :D |
- GroupedWidgets replaces make_group - ContainerWidget replaces make_container
- Removed make_container, make_checkbox, now uses provided UI classes
- Prepared ModelConfig for model info - Prepared InferenceConfig - docstring update
- GroupedWidgets replaces make_group - ContainerWidget replaces make_container
Fixed type errro
Fix argument name error
Fix argument errors
- Added label for model input size - Added warning when folder loading fails
- Replaced all large argument lists with dataclasses for clarity and robustness
Fix type
- QtWarningMsg removed for PyQt6 - Restored write() method in Log for download progress
| # head = msg.split(": ")[0] | ||
| # if type == QtWarningMsg and head == "QWindowsWindow::setGeometry": | ||
| # logger.warning( | ||
| # f"Qt resize error : {msg}\nhas been handled by attempting to resize the window" | ||
| # ) | ||
| # try: | ||
| # if widget.parent() is not None: | ||
| # state = int(widget.parent().parent().windowState()) | ||
| # if state == 0: # normal state | ||
| # widget.parent().parent().adjustSize() | ||
| # logger.debug("Non-max. size adjust attempt") | ||
| # logger.debug(f"{widget.parent().parent()}") | ||
| # elif state == 2: # maximized state | ||
| # widget.parent().parent().showNormal() | ||
| # widget.parent().parent().showMaximized() | ||
| # logger.debug("Maximized size adjust attempt") | ||
| # except RuntimeError: | ||
| # pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code wasn't functional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not broken per se, but I've had two issues with it :
- Inconsistency (it sometimes fails to do its job, maybe I missed a window status case, though usually it's when napari is maximized)
- Causes ImportError when using PyQt6 as backend (this was the reason for commenting, it hindered testing of the plugin on other computers)
I could spend some time fixing it, but those resize errors seem to mainly occur on 4K screens (PyQt5's support of it is not perfect) and less so on more typical resolutions. I can check again on a 1080 screen
(Note to self : Maybe it'd be worth checking if it goes to the except block)
API & UI overhauls
TODO :
Maybe :
Note : check that correct layer types apply to all utils especially.