Skip to content

Commit

Permalink
Merge pull request #855 from ales-erjavec/words-output-type
Browse files Browse the repository at this point in the history
[ENH] Mark "Words" outputs as non-dynamic
  • Loading branch information
PrimozGodec authored Jun 1, 2022
2 parents 4c38b3f + 4011c9c commit 1adc324
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orangecontrib/text/widgets/owkeywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Inputs:
words = Input("Words", Table)

class Outputs:
words = Output("Words", Corpus)
words = Output("Words", Table, dynamic=False)

class Warning(OWWidget.Warning):
no_words_column = Msg("Input is missing 'Words' column.")
Expand Down
2 changes: 1 addition & 1 deletion orangecontrib/text/widgets/owontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ class Inputs:
words = Input("Words", Table)

class Outputs:
words = Output("Words", Table)
words = Output("Words", Table, dynamic=False)

class Warning(OWWidget.Warning):
no_words_column = Msg("Input is missing 'Words' column.")
Expand Down
2 changes: 1 addition & 1 deletion orangecontrib/text/widgets/owwordenrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Inputs:
data = Input("Data", Table)

class Outputs:
words = Output("Words", Table)
words = Output("Words", Table, dynamic=False)

want_main_area = True

Expand Down
2 changes: 1 addition & 1 deletion orangecontrib/text/widgets/owwordlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Inputs:

class Outputs:
selected_words = Output("Selected Words", Table)
words = Output("Words", Table)
words = Output("Words", Table, dynamic=False)

class Warning(OWWidget.Warning):
no_string_vars = Msg("Input needs at least one Text variable.")
Expand Down

0 comments on commit 1adc324

Please sign in to comment.