Skip to content

Commit 262f494

Browse files
committed
Fix formatting.
1 parent 5e3cfca commit 262f494

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

wfdb/io/convert/edf.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,16 @@ def read_edf(
413413
temp_sig_data = temp_all_sigs[i].flatten()
414414

415415
if samps_per_frame[i] == 1:
416-
sig_data[:, i] = (temp_sig_data.astype(np.int64) - baseline[i]) / adc_gain_all[i]
416+
sig_data[:, i] = (
417+
temp_sig_data.astype(np.int64) - baseline[i]
418+
) / adc_gain_all[i]
417419
else:
418420
for j in range(sig_len):
419421
start_ind = j * samps_per_frame[i]
420422
stop_ind = start_ind + samps_per_frame[i]
421423
sig_data[j, i] = np.mean(
422-
temp_sig_data[start_ind:stop_ind].astype(np.int64) - baseline[i]
423-
/ adc_gain_all[i]
424+
temp_sig_data[start_ind:stop_ind].astype(np.int64)
425+
- baseline[i] / adc_gain_all[i]
424426
)
425427

426428
# This is the closest I can get to the original implementation

0 commit comments

Comments
 (0)