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(
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 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments