sensor-sdk 0.0.7__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sensor-sdk might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sensor-sdk
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Python sdk for Synchroni
5
5
  Home-page: https://github.com/oymotion/SynchroniSDKPython
6
6
  Author: Martin Ye
@@ -11,7 +11,6 @@ from sensor.sensor_data import DataType, Sample, SensorData
11
11
  from enum import Enum, IntEnum
12
12
 
13
13
  from sensor.sensor_device import DeviceInfo
14
- from sensor.utils import timer
15
14
 
16
15
 
17
16
  class SensorDataType(IntEnum):
@@ -228,20 +227,25 @@ class SensorProfileDataCtx:
228
227
  if self.hasEEG():
229
228
  # print("initEEG")
230
229
  info.EegChannelCount = await self.initEEG(packageCount)
230
+ info.EegSampleRate = self.sensorDatas[SensorDataType.DATA_TYPE_EEG].sampleRate
231
231
 
232
232
  if self.hasECG():
233
233
  # print("initECG")
234
234
  info.EcgChannelCount = await self.initECG(packageCount)
235
+ info.EcgSampleRate = self.sensorDatas[SensorDataType.DATA_TYPE_ECG].sampleRate
235
236
 
236
237
  if self.hasBrth():
237
238
  # print("initBrth")
238
239
  info.BrthChannelCount = await self.initBrth(packageCount)
240
+ info.BrthSampleRate = self.sensorDatas[SensorDataType.DATA_TYPE_BRTH].sampleRate
239
241
 
240
242
  if self.hasIMU():
241
243
  # print("initIMU")
242
244
  imuChannelCount = await self.initIMU(packageCount)
243
245
  info.AccChannelCount = imuChannelCount
244
246
  info.GyroChannelCount = imuChannelCount
247
+ info.AccSampleRate = self.sensorDatas[SensorDataType.DATA_TYPE_ACC].sampleRate
248
+ info.GyroSampleRate = self.sensorDatas[SensorDataType.DATA_TYPE_GYRO].sampleRate
245
249
 
246
250
  self._device_info = info
247
251
 
@@ -865,3 +869,5 @@ class SensorProfileDataCtx:
865
869
 
866
870
  if last_cut > 0:
867
871
  self._concatDataBuffer = self._concatDataBuffer[last_cut + 1 :]
872
+ last_cut = -1
873
+ index = 0
@@ -40,11 +40,17 @@ class DeviceInfo:
40
40
  self.HardwareVersion = ""
41
41
  self.FirmwareVersion = ""
42
42
  self.EmgChannelCount = 0
43
+ self.EmgSampleRate = 0
43
44
  self.EegChannelCount = 0
45
+ self.EegSampleRate = 0
44
46
  self.EcgChannelCount = 0
47
+ self.EcgSampleRate = 0
45
48
  self.AccChannelCount = 0
49
+ self.AccSampleRate = 0
46
50
  self.GyroChannelCount = 0
51
+ self.GyroSampleRate = 0
47
52
  self.BrthChannelCount = 0
53
+ self.BrthSampleRate = 0
48
54
  self.MTUSize = 0
49
55
 
50
56
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sensor-sdk
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: Python sdk for Synchroni
5
5
  Home-page: https://github.com/oymotion/SynchroniSDKPython
6
6
  Author: Martin Ye
@@ -8,7 +8,7 @@ with open(os.path.join(this_directory, "README.md"), "r", encoding="utf-8") as f
8
8
 
9
9
  setup(
10
10
  name="sensor-sdk",
11
- version="0.0.7",
11
+ version="0.0.8",
12
12
  description="Python sdk for Synchroni",
13
13
  long_description=long_description,
14
14
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes