Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hru-delin-dev
hru-delin-qgis
Commits
dfd9b68b
Unverified
Commit
dfd9b68b
authored
Apr 23, 2020
by
Julien Veyssier
Browse files
effectively use user nb proces choice
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
parent
01117ec9
Changes
1
Hide whitespace changes
Inline
Side-by-side
hrudelin_dockwidget.py
View file @
dfd9b68b
...
...
@@ -691,6 +691,7 @@ class HruDelinDockWidget(QtWidgets.QDockWidget, FORM_CLASS):
# successMethod will be called after the QgsTask has successfully finished
def
launchTask
(
self
,
taskName
,
processMethodList
,
successMethod
=
None
,
errorMethod
=
None
):
task
=
HruDelinTask
(
taskName
,
self
,
processMethodList
)
task
.
nbProcess
=
self
.
nbProcessSpin
.
value
()
self
.
task
=
task
# configure the QgsMessageBar
...
...
@@ -951,7 +952,7 @@ class HruDelinDockWidget(QtWidgets.QDockWidget, FORM_CLASS):
os
.
mkdir
(
self
.
cfgResultsOutPath
)
# run the mzfc
for
progress
in
main2
(
self
.
projectFilePath
,
cpu_count
()
,
True
):
for
progress
in
main2
(
self
.
projectFilePath
,
task
.
nbProcess
,
True
):
task
.
setProgress
(
progress
)
# display layers
...
...
@@ -985,7 +986,7 @@ class HruDelinDockWidget(QtWidgets.QDockWidget, FORM_CLASS):
os
.
mkdir
(
self
.
cfgResultsOutPath
)
# run the mzfc
for
progress
in
main3
(
self
.
projectFilePath
,
cpu_count
()
,
True
):
for
progress
in
main3
(
self
.
projectFilePath
,
task
.
nbProcess
,
True
):
task
.
setProgress
(
progress
)
# display layers
...
...
@@ -1019,7 +1020,7 @@ class HruDelinDockWidget(QtWidgets.QDockWidget, FORM_CLASS):
os
.
remove
(
str
(
fPath
))
# run the mzfc
for
progress
in
main4
(
self
.
projectFilePath
,
cpu_count
()
,
True
):
for
progress
in
main4
(
self
.
projectFilePath
,
task
.
nbProcess
,
True
):
task
.
setProgress
(
progress
)
# display layers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment