From 1ea701ebfac8c47f63144c1f8931c8b7b3476289 Mon Sep 17 00:00:00 2001 From: Clemens Brunner Date: Tue, 8 Oct 2024 13:26:07 +0200 Subject: [PATCH] Close EDF file --- wfdb/io/convert/edf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wfdb/io/convert/edf.py b/wfdb/io/convert/edf.py index e77cda59..e3096884 100644 --- a/wfdb/io/convert/edf.py +++ b/wfdb/io/convert/edf.py @@ -438,6 +438,8 @@ def read_edf( int(np.sum(v) % 65536) for v in np.transpose(sig_data) ] # not all values correct? + edf_file.close() + record = Record( record_name=record_name_out, n_sig=n_sig,