Closed johannahom closed 11 months ago
Hello! Thank you for the bug report. I've made a bug fix https://github.com/timmahrt/praatIO/pull/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!
I'll close this issue for now. If you have related issues, feel free to reopen it. Thank you!
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})" )