Skip to content

Commit 3a07dfe

Browse files
LennyN95Copilot
andauthored
V2.1 improvements (#11)
* feat: Implement logging functionality in MHubRunnerWidget for better debugging and error tracking * feat: Add log level selection UI components to MHubRunnerWidget * feat: Persist log level selection in MHubRunnerWidget settings * feat: enhance image update and removal processes * feat: persist Docker and UDocker executable paths in settings * feat: implement debouncing and asynchronous polling for model fetching * feat: outsource setting screen and new setup screen * refactor: remove udocker backend and stramline handling towards docker NOTE: since udocker is a) significantly slower and b) wasn't widely used, I refactored the code focusing on Docker as single backend. This reduces the complexity (no multi-backend) and allowed to simplify and streamline the code and eventually leading to a more robust implementation. We can always re-evaluate the integration of multiple backends, adding udocker support and potential other alternatives. However, such an investment should be driven by a real use-case / need and not be soley experimental. * feat: add icons for buttons and enhance UI with themed icons * feat: enhance button icon functionality, disabled opacity and add new icons for disabled state * feat: add license summary display and update logic for commercial use in model details * feat: expand sections and utilize full height * refactor: separate settings panel ui file and fix spacing when all main sections are collapsed * fix: update CMakeLists to include all necessary Python resources and icons for MHubRunner * feat: update settings dialog UI with MHub.ai information, move Docker setup button, set default width * feat: add output file button with icons * feat: add running icons and update run button label * feat: add support for non-dicom files - Modality selector is enabled for files not referenced in the DICOM store - Before running, we convert the image into DICOM using Slicer's export functionality NOTE: we skip adding the segmentations back into the DICOM store for non-dicom instances. * fix: update README to correct section title * Update MHubRunner/Resources/UI/MHubRunnerSettings.ui Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update MHubRunner/MHubRunner.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6fb9ec0 commit 3a07dfe

29 files changed

Lines changed: 2261 additions & 1127 deletions

MHubRunner/CMakeLists.txt

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,34 @@ set(MODULE_PYTHON_SCRIPTS
77
)
88

99
set(MODULE_PYTHON_RESOURCES
10-
Resources/Icons/${MODULE_NAME}.png
11-
Resources/UI/${MODULE_NAME}.ui
10+
Resources/Icons/MHubRunner.png
11+
Resources/Icons/MRunner_b.png
12+
Resources/Icons/MRunner_w.png
13+
Resources/Icons/Name.png
14+
Resources/Icons/hi_cancel_b.png
15+
Resources/Icons/hi_cancel_w.png
16+
Resources/Icons/hi_info_b.png
17+
Resources/Icons/hi_info_w.png
18+
Resources/Icons/hi_modelcard_b.png
19+
Resources/Icons/hi_modelcard_w.png
20+
Resources/Icons/hi_noplay_b.png
21+
Resources/Icons/hi_noplay_w.png
22+
Resources/Icons/hi_play_b.png
23+
Resources/Icons/hi_play_w.png
24+
Resources/Icons/hi_pull_b.png
25+
Resources/Icons/hi_pull_w.png
26+
Resources/Icons/hi_pulled_b.png
27+
Resources/Icons/hi_pulled_w.png
28+
Resources/Icons/hi_settings_b.png
29+
Resources/Icons/hi_settings_w.png
30+
Resources/Icons/hi_show_b.png
31+
Resources/Icons/hi_show_w.png
32+
Resources/Icons/hi_noshow_b.png
33+
Resources/Icons/hi_noshow_w.png
34+
Resources/Icons/hi_running_b.png
35+
Resources/Icons/hi_running_w.png
36+
Resources/UI/MHubRunner.ui
37+
Resources/UI/MHubRunnerSettings.ui
1238
)
1339

1440
#-----------------------------------------------------------------------------

MHubRunner/MHubRunner.py

Lines changed: 1155 additions & 546 deletions
Large diffs are not rendered by default.
13.9 KB
Loading
10.7 KB
Loading
235 Bytes
Loading
238 Bytes
Loading
506 Bytes
Loading
493 Bytes
Loading
305 Bytes
Loading
309 Bytes
Loading

0 commit comments

Comments
 (0)