From 68d5c04d5ebb2b5415d87bd647de6e29a38aeca7 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Tue, 26 Nov 2024 12:55:46 +0100 Subject: [PATCH] Fix dtype promotion warning --- wfdb/io/convert/edf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wfdb/io/convert/edf.py b/wfdb/io/convert/edf.py index e3096884..ef8142b2 100644 --- a/wfdb/io/convert/edf.py +++ b/wfdb/io/convert/edf.py @@ -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):