sensor-sdk 0.2.3__tar.gz → 0.2.4__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.
- {sensor_sdk-0.2.3/sensor_sdk.egg-info → sensor_sdk-0.2.4}/PKG-INFO +1 -1
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_data_context.py +10 -2
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4/sensor_sdk.egg-info}/PKG-INFO +1 -1
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/setup.py +1 -1
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/LICENSE.txt +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/README.md +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/__init__.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/bleak_host.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/bleak_no_ack_patch.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/bleak_process.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/fb/DataType.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/fb/Sample.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/fb/SensorData.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/fb/__init__.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/gforce.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sdk_log.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_controller.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_data.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_data_pool.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_device.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_profile.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/sensor_utils.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor/winrt_high_throughput.py +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor_sdk.egg-info/SOURCES.txt +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor_sdk.egg-info/dependency_links.txt +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor_sdk.egg-info/requires.txt +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor_sdk.egg-info/top_level.txt +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/sensor_sdk.egg-info/zip-safe +0 -0
- {sensor_sdk-0.2.3 → sensor_sdk-0.2.4}/setup.cfg +0 -0
|
@@ -1296,7 +1296,11 @@ class SensorProfileDataCtx:
|
|
|
1296
1296
|
if sensor_data is None or sensor_data.sampleRate <= 0:
|
|
1297
1297
|
return True
|
|
1298
1298
|
|
|
1299
|
-
self.checkReadSamples(data, sensor_data, 0, -1)
|
|
1299
|
+
res = self.checkReadSamples(data, sensor_data, 0, -1, on_error_callback)
|
|
1300
|
+
if res == ReadSamplesResult.Error:
|
|
1301
|
+
return False
|
|
1302
|
+
if res == ReadSamplesResult.Repeated:
|
|
1303
|
+
return True
|
|
1300
1304
|
sampleInterval = 1000.0 / sensor_data.sampleRate
|
|
1301
1305
|
lastSampleIndex = sensor_data.lastPackageCounter * sensor_data.packageSampleCount
|
|
1302
1306
|
sensor_data.channelSamples = []
|
|
@@ -1349,7 +1353,11 @@ class SensorProfileDataCtx:
|
|
|
1349
1353
|
return False
|
|
1350
1354
|
|
|
1351
1355
|
sensor_data = self.sensorDatas[SensorDataType.DATA_TYPE_IMPEDANCE]
|
|
1352
|
-
self.checkReadSamples(data, sensor_data, 0, -1, on_error_callback)
|
|
1356
|
+
res = self.checkReadSamples(data, sensor_data, 0, -1, on_error_callback)
|
|
1357
|
+
if res == ReadSamplesResult.Error:
|
|
1358
|
+
return False
|
|
1359
|
+
if res == ReadSamplesResult.Repeated:
|
|
1360
|
+
return True
|
|
1353
1361
|
sampleInterval = 1000.0 / sensor_data.sampleRate if sensor_data.sampleRate > 0 else 0
|
|
1354
1362
|
|
|
1355
1363
|
for index in range(channelCount):
|
|
@@ -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.2.
|
|
11
|
+
version="0.2.4",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|