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

feat: add mergeLabels() method to IntervalTier #47

Merged
merged 2 commits into from
Feb 5, 2023

Conversation

timmahrt
Copy link
Owner

@timmahrt timmahrt commented Feb 4, 2023

This PR adds the mergeLabels() method to IntervalTier.

mergeLabels() can be used for example, to pull in the labels in a phone tier, into a word tier. So interval lists like:
[(0, 1, "hi")]
and
[(0, 0.5, "h"), (0.5, 1, "ai")]
would become
[(0, 1, "hi(h,ai)")]

@codecov
Copy link

codecov bot commented Feb 4, 2023

Codecov Report

Base: 75.71% // Head: 75.81% // Increases project coverage by +0.10% 🎉

Coverage data is based on head (dfd938c) compared to base (f57cba3).
Patch coverage: 93.75% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff               @@
##           praatio_v6      #47      +/-   ##
==============================================
+ Coverage       75.71%   75.81%   +0.10%     
==============================================
  Files              21       21              
  Lines            2623     2638      +15     
==============================================
+ Hits             1986     2000      +14     
- Misses            637      638       +1     
Impacted Files Coverage Δ
praatio/data_classes/interval_tier.py 99.17% <93.75%> (-0.39%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timmahrt timmahrt mentioned this pull request Feb 5, 2023
@timmahrt timmahrt merged commit b821a2a into praatio_v6 Feb 5, 2023
@timmahrt timmahrt deleted the add_merge_labels_method branch February 5, 2023 01:26
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.

None yet

1 participant