Skip to content

Commit

Permalink
Merge pull request #57 from timmahrt/fix_error_msg_in_overlap_case
Browse files Browse the repository at this point in the history
fix: display correct information in error statement
  • Loading branch information
timmahrt committed Jul 18, 2023
2 parents 8069e3d + ec64aa6 commit 0f0544e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 2 additions & 1 deletion praatio/data_classes/interval_tier.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def _validate(self):
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})"
f"({entry.start}, {entry.end}, {entry.label}) and "
f"({nextEntry.start}, {nextEntry.end}, {nextEntry.label})"
)

def crop(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name="praatio",
python_requires=">3.6.0",
version="6.0.0",
version="6.0.1",
author="Tim Mahrt",
author_email="timmahrt@gmail.com",
url="https://github.com/timmahrt/praatIO",
Expand Down

0 comments on commit 0f0544e

Please sign in to comment.