Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue54, changed ids to numeric #68

Merged
merged 2 commits into from
Jun 21, 2024
Merged

issue54, changed ids to numeric #68

merged 2 commits into from
Jun 21, 2024

Conversation

ThijsVroegh
Copy link
Collaborator

@ThijsVroegh ThijsVroegh commented Jun 18, 2024

Issue

Resolves issue #54: output sentences of the Actors widget were presented in the wrong order

Description of changes

We (TV + ET) fixed two problems:

  • story id and sentence_id columns in story_elements_df were strings before sorting on line 217 in file actoranalysis.py which caused unexpected orderings. The format was changed to integer
  • only one of sentences with identical text were kept on line 218 in file actoranalysis.py . This was fixed by considering storyid and sentence_id as well when checking for duplicates
Includes
  • Code changes
  • Tests
  • Documentation

@ThijsVroegh ThijsVroegh added the bug Something isn't working label Jun 18, 2024
@ThijsVroegh
Copy link
Collaborator Author

Hi @kodymoodley, could you also review and merge this one? 😅 It's only a small fix so should't take too long

Copy link
Contributor

@kodymoodley kodymoodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThijsVroegh The code looks fine to me. But just test it on 5-10 stories first before merging. You can select some short ones from the dataset so it is easy for you to verify.

@ThijsVroegh
Copy link
Collaborator Author

Hi @kodymoodley, perfect! I will do a couple of additional checks before merging..

@ThijsVroegh ThijsVroegh self-assigned this Jun 21, 2024
@ThijsVroegh ThijsVroegh merged commit 4d49b87 into master Jun 21, 2024
3 checks passed
@ThijsVroegh ThijsVroegh deleted the issue54 branch June 21, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Order of the text in the Actors widget is different from the original order
3 participants