File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -413,14 +413,16 @@ def read_edf(
413
413
temp_sig_data = temp_all_sigs [i ].flatten ()
414
414
415
415
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 ]
417
419
else :
418
420
for j in range (sig_len ):
419
421
start_ind = j * samps_per_frame [i ]
420
422
stop_ind = start_ind + samps_per_frame [i ]
421
423
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 ]
424
426
)
425
427
426
428
# This is the closest I can get to the original implementation
You can’t perform that action at this time.
0 commit comments