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

180 bug insulate entry classes within alignedtextgrid instances from the global class #181

Conversation

JoFrhwld
Copy link
Member

@JoFrhwld JoFrhwld commented May 2, 2024

This PR will clone entry classes upon creation of an AlignedTextGrid, thus insulating any changes made to those entry classes from the global environment, or other AlignedTextGrid objects.

@JoFrhwld
Copy link
Member Author

JoFrhwld commented May 2, 2024

Still needs tests. @chrisbrickhouse I think if this is merged and published, it should resolve your problem with fave-syllabify: Forced-Alignment-and-Vowel-Extraction/fave-syllabify#5

Copy link

codecov bot commented May 2, 2024

Codecov Report

Attention: Patch coverage is 94.52055% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 89.53%. Comparing base (0a111e6) to head (192e2d1).

Files Patch % Lines
src/aligned_textgrid/custom_classes.py 90.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #181      +/-   ##
==========================================
- Coverage   91.33%   89.53%   -1.80%     
==========================================
  Files          14       14              
  Lines        1269     1319      +50     
==========================================
+ Hits         1159     1181      +22     
- Misses        110      138      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@chrisbrickhouse chrisbrickhouse left a comment

Choose a reason for hiding this comment

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

Typo and iteration comments are blockers, but in general lgtm

tests/test_aligned_textgrid.py Outdated Show resolved Hide resolved
tests/test_aligned_textgrid.py Outdated Show resolved Hide resolved
src/aligned_textgrid/custom_classes.py Outdated Show resolved Hide resolved
src/aligned_textgrid/aligned_textgrid.py Outdated Show resolved Hide resolved
src/aligned_textgrid/aligned_textgrid.py Outdated Show resolved Hide resolved
@JoFrhwld JoFrhwld merged commit 4579cc1 into dev May 2, 2024
7 of 8 checks passed
@JoFrhwld JoFrhwld deleted the 180-bug-insulate-entry-classes-within-alignedtextgrid-instances-from-the-global-class branch June 15, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Insulate entry classes within AlignedTextGrid instances from the global class
2 participants