Skip to content

Commit

Permalink
Merge pull request #459 into main.
Browse files Browse the repository at this point in the history
Fix incorrect comparisons between lists and numpy arrays in
wr_ann_file.

Additionally, drop python 3.7 (apparently broken on github, and now
EOL) from the github workflow test matrix, and add python 3.11.
  • Loading branch information
Benjamin Moody committed Jul 5, 2023
2 parents 870d792 + 481eb45 commit c0f1b12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions wfdb/io/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,10 +940,10 @@ def wr_ann_file(self, write_fs, write_dir=""):
core_bytes = self.calc_core_bytes()

# Mark the end of the special annotation types if needed
if fs_bytes == [] and cl_bytes == []:
end_special_bytes = []
else:
if len(fs_bytes) or len(cl_bytes):
end_special_bytes = [0, 236, 255, 255, 255, 255, 1, 0]
else:
end_special_bytes = []

# Write the file
with open(
Expand Down

0 comments on commit c0f1b12

Please sign in to comment.