Test for the ISC whitening and anit-whitening filters to be set equivalently. Daniel and Keita asked me to do this last week and I finally got around to it today.
It has to check 156 pairs of channels, so with that many channel acces calls it slows down the exc time a bit. When I get time again I will try to make it faster.
Code sample:
omc_tups = [('OMC-DCPD_A_WHITEN_SET_{}'.format(i),'OMC-DCPD_B_WHITEN_SET_{}'.format(i)) for i in range(1,4)]
all_dem_tups = [('{}_WHITEN_FILTER_{}'.format(pre,i), '{}_AWHITEN_SET{}'.format(pre,i)) for pre in prefix for i in range(1,4)] + omc_tups
for x in all_dem_tups:
if ezca[x[0]] != ezca[x[1]]:
yield '{} and Anti-whiten not equal'.format(x[0])
Where prefix is a list of all the filter banks that share common whiten/Awhitening, but the OMC is special, apparently.