Skip to content

Commit f1c67b3

Browse files
authored
Update summary printing when writing EDF
When writing an EDF file the summary of recording length is printed to console. If the number of bytes per block is not an integer this fails with `ValueError: Unknown format code 'd' for object of type 'float'`. Ensure cast to int first.
1 parent 0d45b74 commit f1c67b3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wfdb/io/convert/edf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,12 +959,12 @@ def wfdb_to_edf(
959959
[
960960
num_blocks,
961961
num_blocks * int(frames_per_block),
962-
num_blocks * bytes_per_block,
962+
num_blocks * int(bytes_per_block),
963963
]
964964
),
965965
num_blocks,
966966
num_blocks * int(frames_per_block),
967-
num_blocks * bytes_per_block,
967+
num_blocks * int(bytes_per_block),
968968
)
969969
)
970970
print(

0 commit comments

Comments
 (0)