Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tomotools
tomwer
Commits
3f8d0608
Commit
3f8d0608
authored
1 month ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
FutureSupervisorTask: use 'TomwerOneThreadPerRun' instead of 'TomwerWithStack'
parent
18dea394
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/orangecontrib/tomwer/orange/managedprocess.py
+13
-1
13 additions, 1 deletion
src/orangecontrib/tomwer/orange/managedprocess.py
src/orangecontrib/tomwer/widgets/cluster/FutureSupervisorOW.py
+2
-2
2 additions, 2 deletions
...rangecontrib/tomwer/widgets/cluster/FutureSupervisorOW.py
with
15 additions
and
3 deletions
src/orangecontrib/tomwer/orange/managedprocess.py
+
13
−
1
View file @
3f8d0608
...
@@ -3,7 +3,10 @@ from __future__ import annotations
...
@@ -3,7 +3,10 @@ from __future__ import annotations
import
functools
import
functools
import
logging
import
logging
from
ewoksorange.bindings
import
OWEwoksWidgetWithTaskStack
from
ewoksorange.bindings
import
(
OWEwoksWidgetWithTaskStack
,
OWEwoksWidgetOneThreadPerRun
,
)
from
ewoksorange.bindings.owwidgets
import
invalid_data
from
ewoksorange.bindings.owwidgets
import
invalid_data
from
orangewidget.widget
import
OWBaseWidget
from
orangewidget.widget
import
OWBaseWidget
from
processview.core.manager
import
DatasetState
,
ProcessManager
from
processview.core.manager
import
DatasetState
,
ProcessManager
...
@@ -91,3 +94,12 @@ class TomwerWithStack(
...
@@ -91,3 +94,12 @@ class TomwerWithStack(
channel
.
send
(
None
)
# or channel.invalidate?
channel
.
send
(
None
)
# or channel.invalidate?
else
:
else
:
channel
.
send
(
var
.
value
)
channel
.
send
(
var
.
value
)
class
TomwerOneThreadPerRun
(
OWEwoksWidgetOneThreadPerRun
,
_SuperviseMixIn
,
WidgetLongProcessing
,
openclass
=
True
):
def
setCaption
(
self
,
caption
):
OWBaseWidget
.
setCaption
(
self
,
caption
)
_SuperviseMixIn
.
setCaption
(
self
,
caption
=
caption
)
This diff is collapsed.
Click to expand it.
src/orangecontrib/tomwer/widgets/cluster/FutureSupervisorOW.py
+
2
−
2
View file @
3f8d0608
...
@@ -5,7 +5,7 @@ import time
...
@@ -5,7 +5,7 @@ import time
from
orangewidget
import
gui
from
orangewidget
import
gui
# from orangewidget.widget import Input, Output, OWBaseWidget
# from orangewidget.widget import Input, Output, OWBaseWidget
from
orangecontrib.tomwer.orange.managedprocess
import
Tomwer
WithStack
from
orangecontrib.tomwer.orange.managedprocess
import
Tomwer
OneThreadPerRun
from
ewokscore.missing_data
import
MISSING_DATA
from
ewokscore.missing_data
import
MISSING_DATA
from
ewoksorange.gui.orange_imports
import
Input
from
ewoksorange.gui.orange_imports
import
Input
...
@@ -22,7 +22,7 @@ from tomwer.core.process.cluster.supervisor import FutureSupervisorTask
...
@@ -22,7 +22,7 @@ from tomwer.core.process.cluster.supervisor import FutureSupervisorTask
class
FutureSupervisorOW
(
class
FutureSupervisorOW
(
Tomwer
WithStack
,
Tomwer
OneThreadPerRun
,
ewokstaskclass
=
FutureSupervisorTask
,
ewokstaskclass
=
FutureSupervisorTask
,
):
):
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment