mne-tools/mne-python — pull request #222 by dengemann (2012-12-05 08:55:35+00:00)
Title: FIX + ENH: ICA Bugfix + improved exception handling for noise covariance

- fixed cases that didn't show up due to lazy evaluation
- added regression test to cover this case
- added exception handler that makes sure that info['bads'] and noise_cov['bads'] are the same. In fact there may be cases where the channel names can be identical but the bads info differs. The compute_whitening then would fail.

If you think this is too rigorous an alternative would be to apply some magic and 'equalize' the bads field from info and noise_cov.