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

Incorrect Error Message /praatio/data_classes/interval_tier.py line 99 #56

Closed
johannahom opened this issue Jul 17, 2023 · 2 comments
Closed

Comments

@johannahom
Copy link

Hi there,

Very nice package. I just noticed one of the error messages is not informative for when intervals overlap. It prints out only one of the intervals twice:

for entry, nextEntry in zip(self.entries[0::], self.entries[1::]): if entry.end > nextEntry.start: raise errors.TextgridStateError( "Two intervals in the same tier overlap in time:\n" f"({entry.start}, {entry.end}, {entry.label}) and ({entry.start}, {entry.end}, {entry.label})" )

Should read:

for entry, nextEntry in zip(self.entries[0::], self.entries[1::]): if entry.end > nextEntry.start: raise errors.TextgridStateError( "Two intervals in the same tier overlap in time:\n" f"({entry.start}, {entry.end}, {entry.label}) and ({nextEntry.start}, {nextEntry.end}, {nextEntry.label})" )

@timmahrt
Copy link
Owner

Hello! Thank you for the bug report. I've made a bug fix #57 and have already released it. If you update your praatio version you should see it fixed.

Please let me know if that works for you and if you have any other issues!

@timmahrt
Copy link
Owner

timmahrt commented Nov 4, 2023

I'll close this issue for now. If you have related issues, feel free to reopen it. Thank you!

@timmahrt timmahrt closed this as completed Nov 4, 2023
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

No branches or pull requests

2 participants