• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python mopak_o_dcl.MopakODclParser类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mi.dataset.parser.mopak_o_dcl.MopakODclParser的典型用法代码示例。如果您正苦于以下问题:Python MopakODclParser类的具体用法?Python MopakODclParser怎么用?Python MopakODclParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了MopakODclParser类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_long_stream_rate

 def test_long_stream_rate(self):
     """
     Test a long (normal length file) with accel and rate particles
     """
     stream_handle = open(os.path.join(RESOURCE_PATH,
                                       '20140313_191853.3dmgx3.log'))
     parser = MopakODclParser(self.config, stream_handle,
                              '20140313_191853.3dmgx3.log',
                              self.exception_callback)
     result = parser.get_records(148)
     self.assertEqual(result[0], self.particle_a11_accel)
     self.assertEqual(result[-1], self.particle_last_rate)
     self.assertEqual(self.exception_callback_value, [])
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:13,代码来源:test_mopak_o_dcl.py


示例2: test_long_stream_yml

    def test_long_stream_yml(self):
        """
        Verify an entire file against a yaml result file.
        """
        with open(os.path.join(RESOURCE_PATH, '20140120_140004.mopak.log'), 'rb') as stream_handle:
            parser = MopakODclParser(self.config, stream_handle,
                                     '20140120_140004.mopak.log',
                                     self.exception_callback)

            particles = parser.get_records(10)

            self.assert_particles(particles, 'first_mopak_recov.result.yml', RESOURCE_PATH)
            self.assertEqual(self.exception_callback_value, [])
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:13,代码来源:test_mopak_o_dcl.py


示例3: test_long_stream

    def test_long_stream(self):
        """
        Test a long (normal length file)
        """
        stream_handle = open(os.path.join(RESOURCE_PATH,
                                          '20140120_140004_extradata.mopak.log'))
        parser = MopakODclParser(self.config, stream_handle,
                                 '20140120_140004.mopak.log',
                                 self.exception_callback)

        result = parser.get_records(11964)
        self.assertEqual(result[0], self.particle_a_accel)
        self.assertEqual(result[-1], self.particle_last_accel)
        self.assertEqual(self.exception_callback_value, [])
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:14,代码来源:test_mopak_o_dcl.py


示例4: test_non_data_exception

    def test_non_data_exception(self):
        """
        Test that we get a sample exception from non data being found in the file
        """
        self.stream_handle = open(os.path.join(RESOURCE_PATH, 'noise.mopak.log'))
        self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                       '20140120_140004.mopak.log',
                                       self.state_callback, self.pub_callback,
                                       self.except_callback)

        # next get accel records
        result = self.parser.get_records(5)
        self.assertEqual(result, [self.particle_a_accel,
                                  self.particle_b_accel,
                                  self.particle_c_accel,
                                  self.particle_d_accel,
                                  self.particle_e_accel])
        self.assertEqual(self.parser._state[StateKey.POSITION], 218)
        self.assertEqual(self.state_callback_value[StateKey.POSITION], 218)
        self.assertEqual(self.parser._state[StateKey.TIMER_START], self._timer_start)
        self.assertEqual(self.state_callback_value[StateKey.TIMER_START], self._timer_start)
        self.assertEqual(self.parser._state[StateKey.TIMER_ROLLOVER], 0)
        self.assertEqual(self.state_callback_value[StateKey.TIMER_ROLLOVER], 0)
        self.assertEqual(self.publish_callback_value[0], self.particle_a_accel)
        self.assertEqual(self.publish_callback_value[1], self.particle_b_accel)
        self.assertEqual(self.publish_callback_value[2], self.particle_c_accel)
        self.assertEqual(self.publish_callback_value[3], self.particle_d_accel)
        self.assertEqual(self.publish_callback_value[4], self.particle_e_accel)
        self.assertEqual(self.file_ingested_value, True)
        self.assert_(isinstance(self.exception_callback_value, SampleException))
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:30,代码来源:test_mopak_o_dcl.py


示例5: test_set_state_rate

    def test_set_state_rate(self):
        """
        Test changing to a new state after initializing the parser and
        reading data, as if new data has been found and the state has
        changed
        """
        new_state = {StateKey.POSITION:117,
                     StateKey.TIMER_ROLLOVER:0,
                     StateKey.TIMER_START:self._first_rate_timer_start}
        self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                               'first_rate.mopak.log'))
        self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                       '20140313_191853.3dmgx3.log',
                                       self.state_callback, self.pub_callback,
                                       self.except_callback)
        result = self.parser.get_records(1)
        self.assert_result(result, 43, self.particle_a1_accel, False, self._first_rate_timer_start)

        # set the new state, the essentially skips b accel, a rate
        self.parser.set_state(new_state)
        result = self.parser.get_records(1)
        self.assert_result(result, 148, self.particle_b_rate, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 179, self.particle_c_rate, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 210, self.particle_d_rate, True, self._first_rate_timer_start)
        self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:27,代码来源:test_mopak_o_dcl.py


示例6: test_get_many

 def test_get_many(self):
     """
     Read test data and pull out multiple data particles at one time.
     Assert that the results are those we expected.
     """
     self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                            'first.mopak.log'))
     self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                    '20140120_140004.mopak.log',
                                    self.state_callback, self.pub_callback,
                                    self.except_callback)
     # next get accel records
     result = self.parser.get_records(5)
     self.assertEqual(result, [self.particle_a_accel,
                               self.particle_b_accel,
                               self.particle_c_accel,
                               self.particle_d_accel,
                               self.particle_e_accel])
     self.assertEqual(self.parser._state[StateKey.POSITION], 215)
     self.assertEqual(self.state_callback_value[StateKey.POSITION], 215)
     self.assertEqual(self.parser._state[StateKey.TIMER_START], self._timer_start)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_START], self._timer_start)
     self.assertEqual(self.parser._state[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.publish_callback_value[0], self.particle_a_accel)
     self.assertEqual(self.publish_callback_value[1], self.particle_b_accel)
     self.assertEqual(self.publish_callback_value[2], self.particle_c_accel)
     self.assertEqual(self.publish_callback_value[3], self.particle_d_accel)
     self.assertEqual(self.publish_callback_value[4], self.particle_e_accel)
     self.assertEqual(self.file_ingested_value, True)
     self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:31,代码来源:test_mopak_o_dcl.py


示例7: test_simple_rate

    def test_simple_rate(self):
        """
        Read test data and pull out data particles one at a time.
        Assert that the results are those we expected.
        """
        self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                               'first_rate.mopak.log'))
        self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                       '20140313_191853.mopak.log',
                                       self.state_callback, self.pub_callback,
                                       self.except_callback)
        # next get accel and rate records
        result = self.parser.get_records(1)
        self.assert_result(result, 43, self.particle_a1_accel, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 86, self.particle_b1_accel, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 117, self.particle_a_rate, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 148, self.particle_b_rate, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 179, self.particle_c_rate, False, self._first_rate_timer_start)
        result = self.parser.get_records(1)
        self.assert_result(result, 210, self.particle_d_rate, True, self._first_rate_timer_start)

        # no data left, dont move the position
        result = self.parser.get_records(1)
        self.assertEqual(result, [])
        self.assertEqual(self.parser._state[StateKey.POSITION], 210)
        self.assertEqual(self.state_callback_value[StateKey.POSITION], 210)
        self.assert_(isinstance(self.publish_callback_value, list))
        self.assertEqual(self.publish_callback_value[0], self.particle_d_rate)
        self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:33,代码来源:test_mopak_o_dcl.py


示例8: test_simple

    def test_simple(self):
        """
        Read test data and pull out data particles one at a time.
        Assert that the results are those we expected.
        """
        stream_handle = open(os.path.join(RESOURCE_PATH, 'first.mopak.log'))
        parser = MopakODclParser(self.config, stream_handle,
                                 '20140120_140004.mopak.log',
                                 self.exception_callback)
        # next get acceleration records
        result = parser.get_records(1)
        self.assertEqual(result[0], self.particle_a_accel)
        self.assertEqual(self.exception_callback_value, [])

        result = parser.get_records(1)
        self.assertEqual(result[0], self.particle_b_accel)
        self.assertEqual(self.exception_callback_value, [])

        result = parser.get_records(1)
        self.assertEqual(result[0], self.particle_c_accel)
        self.assertEqual(self.exception_callback_value, [])

        result = parser.get_records(1)
        self.assertEqual(result[0], self.particle_d_accel)
        self.assertEqual(self.exception_callback_value, [])

        result = parser.get_records(1)
        self.assertEqual(result[0], self.particle_e_accel)
        self.assertEqual(self.exception_callback_value, [])

        # no data left, don't move the position
        result = parser.get_records(1)
        self.assertEqual(result, [])
        self.assertEqual(self.exception_callback_value, [])
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:34,代码来源:test_mopak_o_dcl.py


示例9: test_get_many

 def test_get_many(self):
     """
     Read test data and pull out multiple data particles at one time.
     Assert that the results are those we expected.
     """
     stream_handle = open(os.path.join(RESOURCE_PATH,
                                       'first.mopak.log'))
     parser = MopakODclParser(self.config, stream_handle,
                              '20140120_140004.mopak.log',
                              self.exception_callback)
     # next get accel records
     result = parser.get_records(5)
     self.assertEqual(result, [self.particle_a_accel,
                               self.particle_b_accel,
                               self.particle_c_accel,
                               self.particle_d_accel,
                               self.particle_e_accel])
     self.assertEqual(self.exception_callback_value, [])
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:18,代码来源:test_mopak_o_dcl.py


示例10: test_bad_checksum

    def test_bad_checksum(self):
        """
        This tests that the parser raises a Configuration Exception if the
        required configuration items are not present
        """

        stream_handle = open(os.path.join(RESOURCE_PATH,
                                          '20140313_191853_bad_chksum.3dmgx3.log'))

        parser = MopakODclParser(self.config, stream_handle,
                                 '20140313_191853.3dmgx3.log',
                                 self.exception_callback)

        result = parser.get_records(10)

        self.assertEqual(len(result), 5)
        self.assertEqual(len(self.exception_callback_value), 2)
        self.assert_(isinstance(self.exception_callback_value[0], SampleException))
        self.assert_(isinstance(self.exception_callback_value[1], SampleException))
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:19,代码来源:test_mopak_o_dcl.py


示例11: test_non_data_exception

    def test_non_data_exception(self):
        """
        Test that we get a sample exception from non data being found in the file
        """
        stream_handle = open(os.path.join(RESOURCE_PATH, 'noise.mopak.log'))
        parser = MopakODclParser(self.config, stream_handle,
                                 '20140120_140004.mopak.log',
                                 self.exception_callback)

        # next get accel records
        result = parser.get_records(5)
        self.assertEqual(result, [self.particle_a_accel,
                                  self.particle_b_accel,
                                  self.particle_c_accel,
                                  self.particle_d_accel,
                                  self.particle_e_accel])

        self.assertEqual(len(self.exception_callback_value), 1)
        self.assert_(isinstance(self.exception_callback_value[0], SampleException))
开发者ID:JeffRoy,项目名称:mi-dataset,代码行数:19,代码来源:test_mopak_o_dcl.py


示例12: test_bad_config

    def test_bad_config(self):
        """
        This tests that the parser raises a Configuration Exception if the
        required configuration items are not present
        """

        self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                               'first.mopak.log'))

        config ={}

        with self.assertRaises(ConfigurationException):
            self.parser =  MopakODclParser(config, self.start_state, self.stream_handle,
                                           '20140120_140004.mopak.log',
                                           self.state_callback, self.pub_callback,
                                           self.except_callback)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:16,代码来源:test_mopak_o_dcl.py


示例13: test_mid_state_start

 def test_mid_state_start(self):
     """
     Test starting the parser in a state in the middle of processing
     """
     new_state = {StateKey.POSITION:86,
                  StateKey.TIMER_ROLLOVER:0,
                  StateKey.TIMER_START:self._timer_start}
     self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                            'first.mopak.log'))
     self.parser =  MopakODclParser(self.config, new_state, self.stream_handle,
                                    '20140120_140004.mopak.log', self.state_callback, self.pub_callback,
                                    self.except_callback)
     result = self.parser.get_records(1)
     self.assert_result(result, 129, self.particle_c_accel, False, self._timer_start)
     result = self.parser.get_records(1)
     self.assert_result(result, 172, self.particle_d_accel, False, self._timer_start)
     result = self.parser.get_records(1)
     self.assert_result(result, 215, self.particle_e_accel, True, self._timer_start)
     self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:19,代码来源:test_mopak_o_dcl.py


示例14: test_long_stream

 def test_long_stream(self):
     """
     Test a long (normal length file)
     """
     self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                            '20140120_140004.mopak.log'))
     self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                    '20140120_140004.mopak.log', self.state_callback,
                                    self.pub_callback, self.except_callback)
     result = self.parser.get_records(11964)
     self.assertEqual(result[0], self.particle_a_accel)
     self.assertEqual(result[-1], self.particle_last_accel)
     self.assertEqual(self.parser._state[StateKey.POSITION], 514452)
     self.assertEqual(self.state_callback_value[StateKey.POSITION], 514452)
     self.assertEqual(self.parser._state[StateKey.TIMER_START], self._timer_start)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_START], self._timer_start)
     self.assertEqual(self.parser._state[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.publish_callback_value[-1], self.particle_last_accel)
     self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:20,代码来源:test_mopak_o_dcl.py


示例15: test_long_stream_rate

 def test_long_stream_rate(self):
     """
     Test a long (normal length file) with accel and rate particles
     """
     self.stream_handle = open(os.path.join(RESOURCE_PATH,
                                            '20140313_191853.3dmgx3.log'))
     self.parser =  MopakODclParser(self.config, self.start_state, self.stream_handle,
                                    '20140313_191853.3dmgx3.log',
                                    self.state_callback, self.pub_callback,
                                    self.except_callback)
     result = self.parser.get_records(148)
     self.assertEqual(result[0], self.particle_a11_accel)
     self.assertEqual(result[-1], self.particle_last_rate)
     self.assertEqual(self.parser._state[StateKey.POSITION], 5560)
     self.assertEqual(self.state_callback_value[StateKey.POSITION], 5560)
     self.assertEqual(self.parser._state[StateKey.TIMER_START], self._rate_long_timer_start)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_START], self._rate_long_timer_start)
     self.assertEqual(self.parser._state[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.state_callback_value[StateKey.TIMER_ROLLOVER], 0)
     self.assertEqual(self.publish_callback_value[-1], self.particle_last_rate)
     self.assertEqual(self.exception_callback_value, None)
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:21,代码来源:test_mopak_o_dcl.py


示例16: MopakODclParserUnitTestCase

class MopakODclParserUnitTestCase(ParserUnitTestCase):
    """
    MopakODcl Parser unit test suite
    """
    def state_callback(self, state, file_ingested):
        """ Call back method to watch what comes in via the position callback """
        self.state_callback_value = state
        self.file_ingested_value = file_ingested

    def pub_callback(self, pub):
        """ Call back method to watch what comes in via the publish callback """
        self.publish_callback_value = pub

    def except_callback(self, exception):
        """
        Callback method to watch what comes in via the exception callback
        """
        self.exception_callback_value = exception

    def setUp(self):

        ParserUnitTestCase.setUp(self)

        self.config = {
            DataSetDriverConfigKeys.PARTICLE_MODULE: 'mi.dataset.parser.mopak_o_dcl',
            DataSetDriverConfigKeys.PARTICLE_CLASS: ['MopakODclAccelParserDataParticle',
                                                     'MopakODclRateParserDataParticle'],
            DataSetDriverConfigKeys.PARTICLE_CLASSES_DICT:
                    {MopakParticleClassType.ACCEL_PARTCICLE_CLASS: MopakODclAccelParserRecoveredDataParticle,
                     MopakParticleClassType.RATE_PARTICLE_CLASS: MopakODclRateParserRecoveredDataParticle}

        }

        self.start_state = {StateKey.POSITION: 0, StateKey.TIMER_ROLLOVER: 0, StateKey.TIMER_START: None}
        # using the same file, and hence the same start time, so just convert the start time here
        file_datetime = datetime.strptime('20140120_140004', "%Y%m%d_%H%M%S")
        local_seconds = time.mktime(file_datetime.timetuple())
        start_time_utc = local_seconds - time.timezone

        # Define test data particles and their associated timestamps which will be 
        # compared with returned results
        self._timer_start = 33456
        self.timestamp1 = self.timer_to_timestamp(b'\x00\x00\x82\xb0', start_time_utc, 0, self._timer_start)
        self.particle_a_accel = MopakODclAccelParserDataParticle(b"\xcb\xbd\xe6\xac<\xbd\xd9\nA\xbf\x83\xa4" \
                                                                 "+;\xaf\xb4\x01\xbd\xf2o\xd4\xbd\xfe\x9d'>P\xfd\xfc>t\xd5\xc4>\xed\x10\xb2\x00\x00\x82\xb0\x16I",
                                                                 internal_timestamp=self.timestamp1)
        self.timestamp2 = self.timer_to_timestamp(b'\x00\x00\x9b\x1a', start_time_utc, 0, self._timer_start)
        self.particle_b_accel = MopakODclAccelParserDataParticle(b"\xcb\xbe\x17Q\x8e\xbd\xc7_\x8a\xbf\x85\xc3" \
                                                                 "e\xbc\xebN\x18\xbd\x9a\x86P\xbd\xf4\xe4\xd4>T38>s\xc8\xb9>\xea\xce\xd0\x00\x00\x9b\x1a\x15\xa5",
                                                                 internal_timestamp=self.timestamp2)
        self.timestamp3 = self.timer_to_timestamp(b'\x00\x00\xb3\x84', start_time_utc, 0, self._timer_start)
        self.particle_c_accel = MopakODclAccelParserDataParticle(b"\xcb\xbe1\xeak\xbd\xae?\x8a\xbf\x86\x18" \
                                                                 "\x8a\xbd~\xde\xf0\xbc\xb2\x1d\xec\xbd\xd7\xe4\x04>U\xbcW>p\xf3U>\xeaOh\x00\x00\xb3\x84\x15\xd8",
                                                                 internal_timestamp=self.timestamp3)
        self.timestamp4 = self.timer_to_timestamp(b'\x00\x00\xcb\xee', start_time_utc, 0, self._timer_start)
        self.particle_d_accel = MopakODclAccelParserDataParticle(b"\xcb\xbe8\xed\xf0\xbd\xa7\x98'\xbf\x88" \
                                                                 "\x0e\xca\xbd\xeegZ<\xf63\xdc\xbd\xe6b\x8d>U\xa5U>l6p>\xe9\xfc\x8d\x00\x00\xcb\xee\x16e",
                                                                 internal_timestamp=self.timestamp4)
        self.timestamp5 = self.timer_to_timestamp(b'\x00\x00\xe4X', start_time_utc, 0, self._timer_start)
        self.particle_e_accel = MopakODclAccelParserDataParticle(b"\xcb\xbe9t\xb5\xbd\x89\xd1\x16\xbf\x87" \
                                                                 "\r\x14\xbe\r\xca\x9d=\xa9\x85+\xbd\xf3\x1c\xcb>R9\x1b>f\xcen>\xead\xb4\x00\x00\xe4X\x13\x1e",
                                                                 internal_timestamp=self.timestamp5)

        self.timestamp6 = self.timer_to_timestamp(b'\x04ud\x1e', start_time_utc, 0, self._timer_start)
        self.particle_last_accel = MopakODclAccelParserDataParticle(b"\xcb=\xfd\xb6?=0\x84\xf6\xbf\x82\xff" \
                                                                    "\xed>\x07$\x16\xbe\xaf\xf3\xb9=\x93\xb5\xad\xbd\x97\xcb8\xbeo\x0bI>\xf4_K\x04ud\x1e\x14\x87",
                                                                    internal_timestamp=self.timestamp6)

        # got a second file with rate particles in it after writing tests, so adding new tests but leaving
        # the old, resulting in many test particles

        # after this is for a new file with rate in it
        # using the same file, and hence the same start time, so just convert the start time here
        file_datetime = datetime.strptime('20140313_191853', "%Y%m%d_%H%M%S")
        local_seconds = time.mktime(file_datetime.timetuple())
        start_time_utc = local_seconds - time.timezone

        # first in larger file
        self._rate_long_timer_start = 11409586
        self.timestampa11 = self.timer_to_timestamp(b'\x00\xae\x18\xb2', start_time_utc, 0, self._rate_long_timer_start)
        self.particle_a11_accel = MopakODclAccelParserDataParticle(b"\xcb?(\xf4\x85?.\xf6k>\x9dq\x91\xba7r" \
                                                                   "\x9b\xba\xca\x19T:\xff\xbc[\xbe\xfb\xd3\xdf\xbd\xc6\x0b\xbb\xbe\x7f\xa8T\x00\xae\x18\xb2\x15\xfa",
                                                                   internal_timestamp=self.timestampa11)

        self._first_rate_timer_start = 11903336
        # first in first_rate file
        self.timestampa1 = self.timer_to_timestamp(b'\x00\xb5\xa1h', start_time_utc, 0, self._first_rate_timer_start)
        self.particle_a1_accel = MopakODclAccelParserDataParticle(b"\xcb?(\xd3d?/\x0bd>\x9dxr\xba$eZ\xbbl" \
                                                                  "\xaa\xea:\xed\xe7\xa6\xbe\xfb\xe1J\xbd\xc6\xfa\x90\xbe\x7f\xcc2\x00\xb5\xa1h\x16\x01",
                                                                  internal_timestamp=self.timestampa1)
        self.timestampb1 = self.timer_to_timestamp(b'\x00\xb5\xb9\xd2', start_time_utc, 0, self._first_rate_timer_start)
        self.particle_b1_accel = MopakODclAccelParserDataParticle(b"\xcb?))$?/(\x9b>\x9e\x15w\xb9\x92\xc0" \
                                                                  "\x16\xbah\xb6\x0e:\xe5\x97\xf3\xbe\xfc\x044\xbd\xc6\xf5\x1b\xbe\x80ym\x00\xb5\xb9\xd2\x13\xb2",
                                                                  internal_timestamp=self.timestampb1)

        self.timestamp1r = self.timer_to_timestamp(b'\x00\xd0\xe7\xd4', start_time_utc, 0, self._first_rate_timer_start)
        self.particle_a_rate = MopakODclRateParserDataParticle(b"\xcf\xbf\xffNJ?:\x90\[email protected]\x1e\xde\xa8\xba" \
                                                               "\tU\xe8\xbb\x07Z\xf2:\xb8\xa9\xc7\x00\xd0\xe7\xd4\x0f\x98", internal_timestamp=self.timestamp1r)
        self.timestamp2r = self.timer_to_timestamp(b'\x00\xd1\x00>', start_time_utc, 0, self._first_rate_timer_start)
        self.particle_b_rate = MopakODclRateParserDataParticle(b"\xcf\xbf\xffD\xa1?:\x92\[email protected]\x1e\xde\xcc:\xa3" \
#.........这里部分代码省略.........
开发者ID:JeffRoy,项目名称:marine-integrations,代码行数:101,代码来源:test_mopak_o_dcl.py



注:本文中的mi.dataset.parser.mopak_o_dcl.MopakODclParser类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python phsen_abcdef.PhsenRecoveredParser类代码示例发布时间:2022-05-27
下一篇:
Python mmp_cds_base.MmpCdsParser类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap