08-12-2025 03:19 AM - edited 08-12-2025 03:23 AM
Hello everyone i am trying to filter a signal named <head x acc unfiltered>
but when I want to apply the filter designed ,it shows the message about the tuple index is out of range
what is wrong with my script or how can I debug it ?
illustration of my script
problem show up when run the script
10-10-2025 07:59 AM - edited 10-10-2025 08:02 AM
Hi Max,
The error "tuple index out of range" occurs because the array retrieved from the channel "head x acc unfiltered" has a shape that is not compatible with SciPy’s filtfilt  function. To resolve this, simply apply .flatten() to the array to ensure it is one-dimensional: 
input = np.array(oMyChn.Values).flatten()
Regards