mosamatic2 2.0.14__py3-none-any.whl → 2.0.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mosamatic2 might be problematic. Click here for more details.
- mosamatic2/core/utils.py +4 -0
- mosamatic2/ui/resources/VERSION +1 -1
- mosamatic2/ui/widgets/panels/pipelines/boadockerpipelinepanel.py +10 -0
- mosamatic2/ui/widgets/panels/pipelines/defaultdockerpipelinepanel.py +13 -0
- {mosamatic2-2.0.14.dist-info → mosamatic2-2.0.15.dist-info}/METADATA +1 -1
- {mosamatic2-2.0.14.dist-info → mosamatic2-2.0.15.dist-info}/RECORD +8 -8
- {mosamatic2-2.0.14.dist-info → mosamatic2-2.0.15.dist-info}/WHEEL +0 -0
- {mosamatic2-2.0.14.dist-info → mosamatic2-2.0.15.dist-info}/entry_points.txt +0 -0
mosamatic2/core/utils.py
CHANGED
mosamatic2/ui/resources/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.0.
|
|
1
|
+
2.0.15
|
|
@@ -16,6 +16,7 @@ from PySide6.QtCore import (
|
|
|
16
16
|
)
|
|
17
17
|
|
|
18
18
|
from mosamatic2.core.managers.logmanager import LogManager
|
|
19
|
+
from mosamatic2.core.utils import is_docker_running, is_path_docker_compatible
|
|
19
20
|
from mosamatic2.ui.widgets.panels.pipelines.pipelinepanel import PipelinePanel
|
|
20
21
|
from mosamatic2.ui.settings import Settings
|
|
21
22
|
from mosamatic2.ui.utils import is_macos
|
|
@@ -127,6 +128,15 @@ class BoaDockerPipelinePanel(PipelinePanel):
|
|
|
127
128
|
self.settings().set('last_directory', directory)
|
|
128
129
|
|
|
129
130
|
def handle_run_pipeline_button(self):
|
|
131
|
+
if not is_docker_running():
|
|
132
|
+
QMessageBox.information(self, 'Error', 'Docker is not running. Please start Docker Desktop first')
|
|
133
|
+
return
|
|
134
|
+
if not is_path_docker_compatible(self.scans_dir_line_edit().text()):
|
|
135
|
+
QMessageBox.information(self, 'Error', 'Path to scans directory contains spaces and is not Docker compatible')
|
|
136
|
+
return
|
|
137
|
+
if not is_path_docker_compatible(self.output_dir_line_edit().text()):
|
|
138
|
+
QMessageBox.information(self, 'Error', 'Path to output directory contains spaces and is not Docker compatible')
|
|
139
|
+
return
|
|
130
140
|
errors = self.check_inputs_and_parameters()
|
|
131
141
|
if len(errors) > 0:
|
|
132
142
|
error_message = 'Following errors were encountered:\n'
|
|
@@ -18,6 +18,7 @@ from PySide6.QtCore import (
|
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
from mosamatic2.core.managers.logmanager import LogManager
|
|
21
|
+
from mosamatic2.core.utils import is_docker_running, is_path_docker_compatible
|
|
21
22
|
from mosamatic2.ui.widgets.panels.pipelines.pipelinepanel import PipelinePanel
|
|
22
23
|
from mosamatic2.ui.settings import Settings
|
|
23
24
|
from mosamatic2.ui.utils import is_macos
|
|
@@ -223,6 +224,18 @@ class DefaultDockerPipelinePanel(PipelinePanel):
|
|
|
223
224
|
self.model_type_combobox().setCurrentText('pytorch')
|
|
224
225
|
|
|
225
226
|
def handle_run_pipeline_button(self):
|
|
227
|
+
if not is_docker_running():
|
|
228
|
+
QMessageBox.information(self, 'Error', 'Docker is not running. Please start Docker Desktop first')
|
|
229
|
+
return
|
|
230
|
+
if not is_path_docker_compatible(self.images_dir_line_edit().text()):
|
|
231
|
+
QMessageBox.information(self, 'Error', 'Path to images directory contains spaces and is not Docker compatible')
|
|
232
|
+
return
|
|
233
|
+
if not is_path_docker_compatible(self.model_files_dir_line_edit().text()):
|
|
234
|
+
QMessageBox.information(self, 'Error', 'Path to model files directory contains spaces and is not Docker compatible')
|
|
235
|
+
return
|
|
236
|
+
if not is_path_docker_compatible(self.output_dir_line_edit().text()):
|
|
237
|
+
QMessageBox.information(self, 'Error', 'Path to output directory contains spaces and is not Docker compatible')
|
|
238
|
+
return
|
|
226
239
|
errors = self.check_inputs_and_parameters()
|
|
227
240
|
if len(errors) > 0:
|
|
228
241
|
error_message = 'Following errors were encountered:\n'
|
|
@@ -57,7 +57,7 @@ mosamatic2/core/tasks/selectslicefromscanstask/selectslicefromscanstask.py,sha25
|
|
|
57
57
|
mosamatic2/core/tasks/task.py,sha256=APPnid6dpSGkPuDqU1vm2RIMR5vkpvbP1CPHUMjympg,1691
|
|
58
58
|
mosamatic2/core/tasks/totalsegmentatortask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
59
|
mosamatic2/core/tasks/totalsegmentatortask/totalsegmentatortask.py,sha256=Yzy-V6psjhmt-idvLxBoUmbyQGnCBb0OiD0s9lXLmWk,2096
|
|
60
|
-
mosamatic2/core/utils.py,sha256=
|
|
60
|
+
mosamatic2/core/utils.py,sha256=4duREimHWkUfZIjSy16fsxF8-3ZxukfOi8eSNjAdxF8,12240
|
|
61
61
|
mosamatic2/server.py,sha256=-cZ9BPsZUXoINKqwhCHN8c59mlvzzDXzTVxsYt9au70,4644
|
|
62
62
|
mosamatic2/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
mosamatic2/ui/mainwindow.py,sha256=DrX-6Hu4-3wJJy6rZkexYuTQ-pO_uliyEQVkYc4GuCM,15848
|
|
@@ -65,7 +65,7 @@ mosamatic2/ui/resources/icons/mosamatic2.icns,sha256=OfhC-diJTIgaNMOezxKKilGsY7m
|
|
|
65
65
|
mosamatic2/ui/resources/icons/mosamatic2.ico,sha256=ySD3RYluHK3pgS0Eas7eKrVk_AskdLQ4qs_IT-wNhq4,12229
|
|
66
66
|
mosamatic2/ui/resources/icons/spinner.gif,sha256=rvaac6GUZauHSPFSOLWr0RmLfjmtZih2Q8knQ2WP3Po,16240
|
|
67
67
|
mosamatic2/ui/resources/images/body-composition.jpg,sha256=KD-BudbXwThB4lJOZZN-ad5-TZRaaZ5cKTH0Ar1TOZs,21227
|
|
68
|
-
mosamatic2/ui/resources/VERSION,sha256=
|
|
68
|
+
mosamatic2/ui/resources/VERSION,sha256=Ot4hy-wRNaoAwSuWw00gYSDe184QrE6GG0RezRKfkr0,9
|
|
69
69
|
mosamatic2/ui/settings.py,sha256=YEVHYJIfNsqMO3v1pjzgh7Pih9GGoUX7S9s8S-sBNUk,2121
|
|
70
70
|
mosamatic2/ui/utils.py,sha256=6bbPIrh4RJ_yhQKNZrgPbL4XeUEogjIjbk_e5c3QS5g,853
|
|
71
71
|
mosamatic2/ui/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -77,8 +77,8 @@ mosamatic2/ui/widgets/panels/defaultpanel.py,sha256=Ry32Xv6ibxm6NdZ7eBOCcisWNcmn
|
|
|
77
77
|
mosamatic2/ui/widgets/panels/logpanel.py,sha256=ogswJ6_ryb6u7JeVnOsh2Ez8KWg6jtCFZwij8s87xO4,1861
|
|
78
78
|
mosamatic2/ui/widgets/panels/mainpanel.py,sha256=KqI8dA7GpLFd2unqVRTBkNxdnh6AWGpVPwQuaEg8PmI,2431
|
|
79
79
|
mosamatic2/ui/widgets/panels/pipelines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
|
-
mosamatic2/ui/widgets/panels/pipelines/boadockerpipelinepanel.py,sha256=
|
|
81
|
-
mosamatic2/ui/widgets/panels/pipelines/defaultdockerpipelinepanel.py,sha256=
|
|
80
|
+
mosamatic2/ui/widgets/panels/pipelines/boadockerpipelinepanel.py,sha256=f1VKob6SRi8dO2m1HF4JXwV_EkrzYWgTdkIOILDD5y4,8406
|
|
81
|
+
mosamatic2/ui/widgets/panels/pipelines/defaultdockerpipelinepanel.py,sha256=VAYx8Ksb9yVaA2GngB5h-sJNfALXeQMmWqOEXQNCjKY,14215
|
|
82
82
|
mosamatic2/ui/widgets/panels/pipelines/defaultpipelinepanel.py,sha256=qkfI4BnLIXqE_YvSQj4sO_FjnK0eVdIMqAZ8sktgI-8,13727
|
|
83
83
|
mosamatic2/ui/widgets/panels/pipelines/pipelinepanel.py,sha256=SlkKme8Wv2Bvp2Alen98mFjv3F5eZCwJylj294gd5uU,178
|
|
84
84
|
mosamatic2/ui/widgets/panels/stackedpanel.py,sha256=dK1YWuHUzxRhVb5gP0Lu9rAiW4XagjcHmGF__5Lpufk,657
|
|
@@ -100,7 +100,7 @@ mosamatic2/ui/widgets/panels/visualizations/slicevisualization/slicevisualizatio
|
|
|
100
100
|
mosamatic2/ui/widgets/panels/visualizations/visualization.py,sha256=JvqTJi7cCGYK1-wrN2oURdCOBoPS2clVUyYglhkoVJg,178
|
|
101
101
|
mosamatic2/ui/widgets/splashscreen.py,sha256=MS-OczOWfwwEQNQd-JWe9_Mh57css0cSQgbu973rwQo,4056
|
|
102
102
|
mosamatic2/ui/worker.py,sha256=v7e3gq7MUudgpB1BJW-P7j5wurzu6-HG5m7I6WHgJp0,699
|
|
103
|
-
mosamatic2-2.0.
|
|
104
|
-
mosamatic2-2.0.
|
|
105
|
-
mosamatic2-2.0.
|
|
106
|
-
mosamatic2-2.0.
|
|
103
|
+
mosamatic2-2.0.15.dist-info/entry_points.txt,sha256=MCUpKkgbej1clgp8EqlLQGs0BIKwGPcBPiVWLfGz9Gw,126
|
|
104
|
+
mosamatic2-2.0.15.dist-info/METADATA,sha256=AJb3ASnhH6ZN0w6cdvvJThNJcaJCuC3thrcAf234dQM,1534
|
|
105
|
+
mosamatic2-2.0.15.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
106
|
+
mosamatic2-2.0.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|