upd
This commit is contained in:
		
							parent
							
								
									d4983f45f2
								
							
						
					
					
						commit
						3e15c2ebf5
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
__version__ = '0.1.2'
 | 
			
		||||
__version__ = '0.1.3'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -79,7 +79,7 @@ def filter_signal_by_modes(time, signal, num_modes=1, bandwidth_factor=0.1, nyqu
 | 
			
		|||
            # Créer le filtre Butterworth
 | 
			
		||||
            lowcut = lowcut / nyq
 | 
			
		||||
            highcut = highcut / nyq
 | 
			
		||||
        b, a = butter(4, [low, high], btype='band')
 | 
			
		||||
        b, a = butter(4, [lowcut, highcut], btype='band')
 | 
			
		||||
 | 
			
		||||
        # Appliquer le filtre (filtfilt pour éviter le déphasage)
 | 
			
		||||
        filtered_signal = filtfilt(b, a, signal_clean)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue