Skip to content

Commit

Permalink
Fix dtype promotion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrnr committed Nov 26, 2024
1 parent 235f215 commit 68d5c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfdb/io/convert/edf.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def read_edf(
}

sig_data = np.empty((sig_len, n_sig))
temp_sig_data = np.fromfile(edf_file, dtype=np.int16)
temp_sig_data = np.fromfile(edf_file, dtype=np.int64)
temp_sig_data = temp_sig_data.reshape((-1, sum(samps_per_block)))
temp_all_sigs = np.hsplit(temp_sig_data, np.cumsum(samps_per_block)[:-1])
for i in range(n_sig):
Expand Down

0 comments on commit 68d5c04

Please sign in to comment.