Пример #1
0
class TestEEGTableToWindowConverter(unittest.TestCase):

    def setUp(self):
        self.converter = EEGTableWindowSource(FILE_PATH, False, 16)

    def test_convert_sunshine(self):
        self.assertFalse(self.converter.hasMore)
        self.converter.convert()
        self.assertTrue(self.converter.hasMore)
        for _ in range(0, len(self.converter.data)):
            self.converter.dequeue()
        self.assertFalse(self.converter.hasMore)
Пример #2
0
 def __init__(self, filePath=None, fields=[], windowSize=128, windowCount=2):
     datasource = EEGTableWindowSource(filePath, False, windowSize, windowCount)
     datasource.convert()
     DataCollector.__init__(self, datasource, fields, windowSize, windowCount)
     self.fields = fields
     self.collect = True;