Exemplo n.º 1
0
 def setUpContainer(self):
     event_times = [1.9, 3.5]
     TestElectricalSeriesIO.make_electrode_table(self)
     region = DynamicTableRegion('electrodes', [0, 2], 'the first and third electrodes', self.table)
     description = ['desc1', 'desc2', 'desc3']
     features = [[[0, 1, 2], [3, 4, 5]], [[6, 7, 8], [9, 10, 11]]]
     fe = FeatureExtraction('test_fe', region, description, event_times, features)
     return fe
Exemplo n.º 2
0
 def setUpContainer(self):
     """ Return a test FeatureExtraction to read/write """
     event_times = [1.9, 3.5]
     TestElectricalSeriesIO.make_electrode_table(self)
     region = DynamicTableRegion('electrodes', [0, 2], 'the first and third electrodes', self.table)
     description = ['desc1', 'desc2', 'desc3']
     features = [[[0., 1., 2.], [3., 4., 5.]], [[6., 7., 8.], [9., 10., 11.]]]
     fe = FeatureExtraction(region, description, event_times, features)
     return fe
Exemplo n.º 3
0
 def test_init(self):
     event_times = [1.9, 3.5]
     table = make_electrode_table()
     region = DynamicTableRegion('electrodes', [0, 2], 'the first and third electrodes', table)
     description = ['desc1', 'desc2', 'desc3']
     features = [[[0, 1, 2], [3, 4, 5]], [[6, 7, 8], [9, 10, 11]]]
     fe = FeatureExtraction(region, description, event_times, features)   # noqa: F405
     self.assertEqual(fe.description, description)
     self.assertEqual(fe.times, event_times)
     self.assertEqual(fe.features, features)