Skip to content

Commit 6b32698

Browse files
authored
Merge pull request #7045 from ales-erjavec/specific-output-types
[FIX] Disable dynamic signals where applicable
2 parents afc6c18 + f0fe384 commit 6b32698

File tree

13 files changed

+19
-15
lines changed

13 files changed

+19
-15
lines changed

Orange/widgets/data/owcorrelations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class Inputs:
250250
class Outputs:
251251
data = Output("Data", Table)
252252
features = Output("Features", AttributeList)
253-
correlations = Output("Correlations", Table)
253+
correlations = Output("Correlations", Table, dynamic=False)
254254

255255
want_main_area = False
256256
want_control_area = True

Orange/widgets/data/owcsvimport.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,15 @@ class Outputs:
627627
data = widget.Output(
628628
name="Data",
629629
type=Orange.data.Table,
630-
doc="Loaded data set.")
630+
doc="Loaded data set.",
631+
dynamic=False,
632+
)
631633
data_frame = widget.Output(
632634
name="Data Frame",
633635
type=pd.DataFrame,
634636
doc="",
635-
auto_summary=False
637+
auto_summary=False,
638+
dynamic=False,
636639
)
637640

638641
class Error(widget.OWWidget.Error):

Orange/widgets/data/owmelt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Inputs:
6969
data = widget.Input("Data", Table)
7070

7171
class Outputs:
72-
data = widget.Output("Data", Table)
72+
data = widget.Output("Data", Table, dynamic=False)
7373

7474
class Information(widget.OWWidget.Information):
7575
no_suitable_features = Msg(

Orange/widgets/data/owmergedata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ class Inputs:
256256
class Outputs:
257257
data = Output("Data",
258258
Orange.data.Table,
259-
replaces=["Merged Data A+B", "Merged Data B+A", "Merged Data"])
259+
replaces=["Merged Data A+B", "Merged Data B+A", "Merged Data"],
260+
dynamic=False)
260261

261262
LeftJoin, InnerJoin, OuterJoin = range(3)
262263
OptionNames = ("Append columns from Extra data",

Orange/widgets/data/owpaintdata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ class Inputs:
758758
data = Input("Data", Table)
759759

760760
class Outputs:
761-
data = Output("Data", Table)
761+
data = Output("Data", Table, dynamic=False)
762762

763763
autocommit = Setting(True)
764764
table_name = Setting("Painted data")

Orange/widgets/data/owpivot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,9 +731,9 @@ class Inputs:
731731
data = Input("Data", Table, default=True)
732732

733733
class Outputs:
734-
pivot_table = Output("Pivot Table", Table, default=True)
734+
pivot_table = Output("Pivot Table", Table, default=True, dynamic=False)
735735
filtered_data = Output("Filtered Data", Table)
736-
grouped_data = Output("Grouped Data", Table)
736+
grouped_data = Output("Grouped Data", Table, dynamic=False)
737737

738738
class Warning(OWWidget.Warning):
739739
# TODO - inconsistent for different variable types

Orange/widgets/data/owrank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class Inputs:
219219

220220
class Outputs:
221221
reduced_data = Output("Reduced Data", Table, default=True)
222-
scores = Output("Scores", Table)
222+
scores = Output("Scores", Table, dynamic=False)
223223
features = Output("Features", AttributeList, dynamic=False)
224224

225225
SelectNone, SelectAll, SelectManual, SelectNBest = range(4)

Orange/widgets/unsupervised/owcorrespondence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Inputs:
3939
data = Input("Data", Table)
4040

4141
class Outputs:
42-
coordinates = Output("Coordinates", Table)
42+
coordinates = Output("Coordinates", Table, dynamic=False)
4343

4444
Invalidate = QEvent.registerEventType()
4545

Orange/widgets/unsupervised/owkmeans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Outputs:
114114
ANNOTATED_DATA_SIGNAL_NAME, Table, default=True,
115115
replaces=["Annotated Data"]
116116
)
117-
centroids = Output("Centroids", Table)
117+
centroids = Output("Centroids", Table, dynamic=False)
118118

119119
class Error(widget.OWWidget.Error):
120120
failed = widget.Msg("Clustering failed\nError: {}")

Orange/widgets/unsupervised/owlouvainclustering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Inputs:
6262
class Outputs:
6363
annotated_data = Output(ANNOTATED_DATA_SIGNAL_NAME, Table, default=True)
6464
if Network is not None:
65-
graph = Output("Network", Network)
65+
graph = Output("Network", Network, dynamic=False)
6666

6767
apply_pca = Setting(True)
6868
pca_components = Setting(_DEFAULT_PCA_COMPONENTS)

0 commit comments

Comments
 (0)