qlsdk2 0.6.0a13__tar.gz → 0.6.0a14__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.
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/PKG-INFO +1 -1
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/setup.py +1 -1
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/entity/__init__.py +16 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/persist/rsc_edf.py +2 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/arskindling.py +1 -1
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/base.py +1 -1
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk2.egg-info/PKG-INFO +1 -1
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/README.md +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/setup.cfg +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/ar4/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/ar4m/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/crc/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/crc/crctools.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/device.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/exception.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/filter/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/filter/norch.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/local.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/message/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/message/command.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/message/tcp.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/message/udp.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/network/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/network/monitor.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/core/utils.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/entity/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/entity/message.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/entity/signal.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/analyzer.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/collector.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/device.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/parser.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/stimulator.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/interface/store.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/persist/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/persist/ars_edf.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/persist/edf.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/persist/stream.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/command/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/c16_rs.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/c256_rs.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/c64_rs.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/c64s1.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/device/device_factory.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/eegion.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/entity.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/interface/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/interface/command.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/interface/device.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/interface/handler.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/interface/parser.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/manager/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/manager/container.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/manager/search.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/network/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/network/discover.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/paradigm.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/parser/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/parser/base-new.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/parser/base.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/parser/rsc.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/rsc/proxy.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/sdk/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/sdk/ar4sdk.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/sdk/hub.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/sdk/libs/libAr4SDK.dll +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/sdk/libs/libwinpthread-1.dll +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/x8/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk/x8m/__init__.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk2.egg-info/SOURCES.txt +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk2.egg-info/dependency_links.txt +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk2.egg-info/requires.txt +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/src/qlsdk2.egg-info/top_level.txt +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/test/test.222.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/test/test.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/test/test_ar4m.py +0 -0
- {qlsdk2-0.6.0a13 → qlsdk2-0.6.0a14}/test/test_bdf.py +0 -0
|
@@ -54,6 +54,22 @@ class RscPacket(Packet):
|
|
|
54
54
|
logger.trace(packet)
|
|
55
55
|
|
|
56
56
|
return packet
|
|
57
|
+
|
|
58
|
+
def copy(self) -> 'RscPacket':
|
|
59
|
+
packet = RscPacket()
|
|
60
|
+
packet.time_stamp = self.time_stamp
|
|
61
|
+
packet.pkg_id = self.pkg_id
|
|
62
|
+
packet.result = self.result
|
|
63
|
+
packet.channels = self.channels
|
|
64
|
+
packet.origin_sample_rate = self.origin_sample_rate
|
|
65
|
+
packet.sample_rate = self.sample_rate
|
|
66
|
+
packet.sample_num = self.sample_num
|
|
67
|
+
packet.resolution = self.resolution
|
|
68
|
+
packet.filter = self.filter
|
|
69
|
+
packet.data_len = self.data_len
|
|
70
|
+
packet.trigger = self.trigger
|
|
71
|
+
packet.eeg = self.eeg
|
|
72
|
+
return packet
|
|
57
73
|
|
|
58
74
|
def __str__(self):
|
|
59
75
|
return f"""[
|
|
@@ -238,7 +238,7 @@ class ARSKindling(QLBaseDevice):
|
|
|
238
238
|
# 写入文件的缓存队列
|
|
239
239
|
if self._signal_cache is None:
|
|
240
240
|
self._signal_cache = Queue(1000000) # 缓冲队列
|
|
241
|
-
tmp = real_data
|
|
241
|
+
tmp = real_data.copy()
|
|
242
242
|
self._signal_cache.put(tmp)
|
|
243
243
|
|
|
244
244
|
if len(self.signal_consumers) > 0 :
|
|
@@ -155,7 +155,7 @@ class QLBaseDevice(IDevice):
|
|
|
155
155
|
# 写入文件的缓存队列
|
|
156
156
|
if self._signal_cache is None:
|
|
157
157
|
self._signal_cache = Queue(256 * 1024 * 1024) # 256MB缓存
|
|
158
|
-
tmp = data
|
|
158
|
+
tmp = data.copy()
|
|
159
159
|
self._signal_cache.put(tmp)
|
|
160
160
|
|
|
161
161
|
if len(self.signal_consumers) > 0 :
|
|
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
|
|
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
|
|
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
|