def test_FilterBankLeftRightImagery_paradigm(self): # can work with filter bank paradigm = FilterBankLeftRightImagery() dataset = FakeDataset(event_list=["left_hand", "right_hand"], paradigm="imagery") X, labels, metadata = paradigm.get_data(dataset, subjects=[1]) # X must be a 4D Array self.assertEqual(len(X.shape), 4) self.assertEqual(X.shape[-1], 6) # should return epochs epochs, _, _ = paradigm.get_data(dataset, subjects=[1], return_epochs=True) self.assertIsInstance(epochs, BaseEpochs)
def test_FilterBankLeftRightImagery_paradigm(self): # can work with filter bank paradigm = FilterBankLeftRightImagery() dataset = FakeDataset(event_list=['left_hand', 'right_hand']) X, labels, metadata = paradigm.get_data(dataset, subjects=[1]) # X must be a 4D Array self.assertEqual(len(X.shape), 4) self.assertEqual(X.shape[-1], 6)