I figured I would make a discussion post here to include as many voices in the matter as possible.
I was looking through the various methods currently in Brainstorm for computing TF maps and noticed that most do not remove bad segments before processing the data. This makes some sense for kernel-based methods such as Hilbert and Wavelet transforms, but for a windowing process like the STFT it is very easy to identify times containing bad segments (and remove them if desired). If a STFT-based process were to be distributed in Brainstorm, what are your thoughts on keeping or removing timepoints containing bad segments?
If we decide to remove bad timepoints, Brainstorm's TF visualization platform currently generates the wrong set of times for the data (uses linspace for the full time range with fewer points), so I will just have to include a clause that provides the correct times (either leaving blank space for missing times or appearing as a linear interpolation across the bad times).