Skip to content

Commit 34aad4a

Browse files
committed
Fix style
1 parent 5539c02 commit 34aad4a

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

tests/test_archive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,5 @@ def test_archive_missing_file_error(temp_record):
190190
zout.writestr(item, zin.read(item.filename))
191191
os.remove(archive_path + ".bak")
192192

193-
with pytest.raises(FileNotFoundError, match=".*\.dat.*"):
193+
with pytest.raises(FileNotFoundError, match=r".*\.dat.*"):
194194
rdrecord(archive_path)

wfdb/io/record.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2786,9 +2786,7 @@ def wfdbtime(record_name, input_times, pn_dir=None):
27862786
)
27872787
if not times.startswith("s"):
27882788
sample_num = int(
2789-
sum(
2790-
x * 60**i for i, x in enumerate([seconds, minutes, hours])
2791-
)
2789+
sum(x * 60**i for i, x in enumerate([seconds, minutes, hours]))
27922790
* record.fs
27932791
)
27942792
sample_num = "s" + str(sample_num)

0 commit comments

Comments
 (0)