Closed f-hafner closed 2 months ago
I suspect it has to do with the input text, since the same problem occurs for the same text in the actions widget
Cannot reproduce. @f-hafner can we sit down together and try to reproduce this on my machine?
It's specific to the dataset and a bit unpredictable. I can share inputs and workflows to reproduce.
I no longer think that it has to do with the input text: when I changed the set of stories (but kept the ones where the error occurred), the error occurred elsewhere
It's also doing something else I had not noticed: for some stories, the wrong text is shown in the actors widget -- ie, the text of Story A in the raw data is shown for story B (and for story B, it shows text of story C). But then, when I use the regexp filter, it shows the text from the right story. this is possibly related to #51
stack trace
Traceback (most recent call last):
File "/home/flavio/repositories/projects/navigating-stories/orange-story-navigator/orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py", line 763, in selection_changed
self.show_docs()
File "/home/flavio/repositories/projects/navigating-stories/orange-story-navigator/orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py", line 803, in show_docs
self.story_elements_dict[str(c_index)]
KeyError: '16'
next steps: print keys of story elements and see who and why the keys are changing, and why the key 16 is missing.
We need to add debug points / print statements to check how the value of self.story_elements_dict
in https://github.com/navigating-stories/orange-story-navigator/blob/master/orangecontrib/storynavigation/widgets/OWSNActorAnalysis.py changes. I think that's where the problem is.
Should be fixed in #58.
Story Navigator version
0.0.18 (commit https://github.com/navigating-stories/orange-story-navigator/commit/8732988e67920716c2eef3eef0af7d6e936da74f)
Orange version
3.36.2
Expected behavior
Can display the actor analysis for story 28 (contact me for title) without error
Actual behavior
When clicking on the story, I get the following error:
Steps to reproduce the behavior
File
widget:dutch_halliday_action_list.csv
Import Documents
widget: subset of corona storiesElements
widget: languagenl
,custom tagscustom tagsrealm
word
, number of segments1
Additional info (worksheets, data, screenshots, ...)