Skip to content

Commit

Permalink
Merge pull request #71 from navigating-stories/issue44
Browse files Browse the repository at this point in the history
Solving issue44 and issue37
  • Loading branch information
ThijsVroegh committed Jul 2, 2024
2 parents daa3a0e + 89f2716 commit 959ea02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orangecontrib/storynavigation/widgets/OWSNActionAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ def set_stories(self, stories=None):
"""Stories expects a Corpus. Because Corpus is a subclass of Table, Orange type checking
misses wrongly connected inputs.
"""
self.valid_stories = []
if stories is not None:
if not isinstance(stories, Corpus):
self.Error.wrong_input_for_stories()
Expand All @@ -525,6 +526,8 @@ def set_story_elements(self, story_elements=None):
"""Story elements expects a table. Because Corpus is a subclass of Table, Orange type checking
misses wrongly connected inputs."""

self.valid_stories = []

if story_elements is not None:
if isinstance(story_elements, Corpus):
self.Error.wrong_input_for_elements()
Expand Down
3 changes: 3 additions & 0 deletions orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ def set_stories(self, stories=None):
"""Stories expects a Corpus. Because Corpus is a subclass of Table, Orange type checking
misses wrongly connected inputs.
"""
self.valid_stories = []
if (stories is not None):
if not isinstance(stories, Corpus):
self.Error.wrong_input_for_stories()
Expand All @@ -594,6 +595,8 @@ def set_story_elements(self, story_elements=None):
"""Story elements expects a table. Because Corpus is a subclass of Table, Orange type checking
misses wrongly connected inputs."""

self.valid_stories = []

if story_elements is not None:
if isinstance(story_elements, Corpus):
self.Error.wrong_input_for_elements()
Expand Down

0 comments on commit 959ea02

Please sign in to comment.