def test_seeg_ecog():
 (n_epochs, n_channels, n_times, sfreq) = (5, 10, 20, 1000.0)
 data = np.ones((n_epochs, n_channels, n_times))
 events = np.array([np.arange(n_epochs), ([0] * n_epochs), ([1] * n_epochs)]).T
 pick_dict = dict(meg=False, exclude=[])
 for key in ('seeg', 'ecog'):
  info = create_info(n_channels, sfreq, key)
  epochs = EpochsArray(data, info, events)
  pick_dict.update({key: True})
  picks = pick_types(epochs.info, **pick_dict)
  del pick_dict[key]
  assert_equal(len(picks), n_channels)

def test_seeg_ecog ( ) : ( n_epochs , n_channels , n_times , sfreq ) = ( 5 , 10 , 20 , 1000.0 ) data = np . ones ( ( n_epochs , n_channels , n_times ) ) events = np . array ( [ np . arange ( n_epochs ) , ( [ 0 ] * n_epochs ) , ( [ 1 ] * n_epochs ) ] ) . T pick_dict = dict ( meg = False , exclude = [ ] ) for key in ( 'seeg' , 'ecog' ) : info = create_info ( n_channels , sfreq , key ) epochs = EpochsArray ( data , info , events ) pick_dict . update ( { key : True } ) picks = pick_types ( epochs . info , ** pick_dict ) del pick_dict [ key ] assert_equal ( len ( picks ) , n_channels )
test the compatibility of the epoch object with seeg and ecog data .