Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/p/y/python-mindwave-mobile-HEAD/mindwavemobile/MindwavePacketPayloadParser.py   python-mindwave-mobile(Download)
from MindwaveDataPoints import RawDataPoint, PoorSignalLevelDataPoint,\
    AttentionDataPoint, MeditationDataPoint, BlinkDataPoint, EEGPowersDataPoint
 
EXTENDED_CODE_BYTE = 0x55
 
    def _createDataPoint(self, dataRowCode, dataRowValueBytes):
        if (dataRowCode == 0x02):
            return PoorSignalLevelDataPoint(dataRowValueBytes)
        elif (dataRowCode == 0x04):
            return AttentionDataPoint(dataRowValueBytes)

src/p/y/python-mindwave-mobile-HEAD/mindwavemobile/tests/MindwavePacketPayloadParserTest.py   python-mindwave-mobile(Download)
import unittest
from MindwavePacketPayloadParser import MindwavePacketPayloadParser
from MindwaveDataPoints import RawDataPoint, PoorSignalLevelDataPoint,\
    MeditationDataPoint, AttentionDataPoint, EEGPowersDataPoint, BlinkDataPoint