modify filter_waveforms.sh