biosignal-device-interface 0.1.11b0__tar.gz → 0.1.12b0__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.
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/PKG-INFO +1 -1
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/__pycache__/__init__.cpython-311.pyc +0 -0
- {biosignal_device_interface-0.1.11b0/biosignal_device_interface → biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices}/__init__.py +0 -1
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/__pycache__/base_device_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/__pycache__/otb_muovi_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/__pycache__/otb_quattrocento_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/core/__pycache__/base_device_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/__pycache__/otb_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/__pycache__/otb_muovi_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/__pycache__/otb_quattrocento_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/__pycache__/otb_quattrocento_light_constants.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/plots/__pycache__/color_palette.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/__init__.py +15 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/__pycache__/otb_muovi.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/__pycache__/otb_quattrocento.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/core/__init__.py +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/core/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/core/__pycache__/base_device.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__init__.py +21 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__pycache__/otb_light_quattrocento.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__pycache__/otb_muovi.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__pycache__/otb_quattrocento.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/__pycache__/otb_quattrocento_light.cpython-311.pyc +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/devices/otb/otb_muovi.py +5 -5
- biosignal_device_interface-0.1.11b0/biosignal_device_interface/devices/otb/otb_quattrocento.py → biosignal_device_interface-0.1.12b0/biosignal_device_interface/devices/otb/otb_quattrocento_light.py +7 -31
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__init__.py +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__pycache__/all_devices_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__pycache__/otb_muovi_plus_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__pycache__/otb_muovi_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/__pycache__/otb_quattrocento_light_widget.cpython-311.pyc +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/all_devices_widget.py +11 -7
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/core/__pycache__/base_device_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/core/__pycache__/base_multiple_devices_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__init__.py +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__pycache__/__init__.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__pycache__/otb_devices_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__pycache__/otb_muovi_plus_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__pycache__/otb_muovi_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/device_template_widgets/otb/__pycache__/otb_quattrocento_light_widget.cpython-311.pyc +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/otb/otb_devices_widget.py +11 -7
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_plus_widget.py +2 -2
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_widget.py +2 -2
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/otb/otb_quattrocento_light_widget.py +3 -3
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/plot_widgets/__pycache__/biosignal_plot_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/ui_compiled/__pycache__/devices_template_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/ui_compiled/__pycache__/otb_muovi_template_widget.cpython-311.pyc +0 -0
- biosignal_device_interface-0.1.12b0/biosignal_device_interface/gui/ui_compiled/__pycache__/otb_quattrocento_light_template_widget.cpython-311.pyc +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/pyproject.toml +1 -1
- biosignal_device_interface-0.1.11b0/biosignal_device_interface/devices/__init__.py +0 -9
- biosignal_device_interface-0.1.11b0/biosignal_device_interface/devices/otb/__init__.py +0 -9
- biosignal_device_interface-0.1.11b0/biosignal_device_interface/gui/device_template_widgets/__init__.py +0 -6
- biosignal_device_interface-0.1.11b0/biosignal_device_interface/gui/device_template_widgets/otb/__init__.py +0 -10
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/LICENSE +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/README.md +0 -0
- {biosignal_device_interface-0.1.11b0/biosignal_device_interface/constants → biosignal_device_interface-0.1.12b0/biosignal_device_interface}/__init__.py +0 -0
- {biosignal_device_interface-0.1.11b0/biosignal_device_interface/constants/devices → biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants}/__init__.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/constants/devices/core/base_device_constants.py +0 -0
- /biosignal_device_interface-0.1.11b0/biosignal_device_interface/devices/core/__init__.py → /biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/otb_constants.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/constants/devices/otb/otb_muovi_constants.py +0 -0
- /biosignal_device_interface-0.1.11b0/biosignal_device_interface/constants/devices/otb/otb_quattrocento_constants.py → /biosignal_device_interface-0.1.12b0/biosignal_device_interface/constants/devices/otb/otb_quattrocento_light_constants.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/constants/plots/color_palette.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/devices/core/base_device.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/core/base_device_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/device_template_widgets/core/base_multiple_devices_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/plot_widgets/biosignal_plot_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui/devices_template_widget.ui +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui/otb_muovi_plus_template_widget.ui +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui/otb_muovi_template_widget.ui +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui/otb_quattrocento_light_template_widget.ui +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui_compiled/devices_template_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui_compiled/otb_muovi_plus_template_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui_compiled/otb_muovi_template_widget.py +0 -0
- {biosignal_device_interface-0.1.11b0 → biosignal_device_interface-0.1.12b0}/biosignal_device_interface/gui/ui_compiled/otb_quattrocento_light_template_widget.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: biosignal-device-interface
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.12b0
|
|
4
4
|
Summary: Python communication interface to many biosignal devices manufactured by several companies to easy integration in custom PySide6 applications.
|
|
5
5
|
License: CC BY-SA 4.0
|
|
6
6
|
Author: Dominik I. Braun
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Import Devices to be used from biosignal_device_interface.devices
|
|
2
|
+
# import Muovi, MindRoveBracelet, Quattrocento, QuattrocentoLight, ...
|
|
3
|
+
|
|
4
|
+
from biosignal_device_interface.devices.otb import (
|
|
5
|
+
OTBMuoviWidget,
|
|
6
|
+
OTBMuoviPlusWidget,
|
|
7
|
+
OTBQuattrocentoLightWidget,
|
|
8
|
+
OTBMuovi,
|
|
9
|
+
OTBQuattrocentoLight,
|
|
10
|
+
OTBDevicesWidget,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
from biosignal_device_interface.gui.device_template_widgets.all_devices_widget import (
|
|
14
|
+
AllDevicesWidget,
|
|
15
|
+
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from biosignal_device_interface.devices.otb.otb_quattrocento_light import (
|
|
2
|
+
OTBQuattrocentoLight,
|
|
3
|
+
)
|
|
4
|
+
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi
|
|
5
|
+
|
|
6
|
+
# Widgets
|
|
7
|
+
# All OTB Devices Widget
|
|
8
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_devices_widget import (
|
|
9
|
+
OTBDevicesWidget,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
# Individual OTB Device Widgets
|
|
13
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_widget import (
|
|
14
|
+
OTBMuoviWidget,
|
|
15
|
+
)
|
|
16
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_plus_widget import (
|
|
17
|
+
OTBMuoviPlusWidget,
|
|
18
|
+
)
|
|
19
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_quattrocento_light_widget import (
|
|
20
|
+
OTBQuattrocentoLightWidget,
|
|
21
|
+
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -126,9 +126,9 @@ class OTBMuovi(BaseDevice):
|
|
|
126
126
|
return True
|
|
127
127
|
|
|
128
128
|
def configure_device(
|
|
129
|
-
self,
|
|
129
|
+
self, params: Dict[str, Union[Enum, Dict[str, Enum]]] # type: ignore
|
|
130
130
|
) -> None:
|
|
131
|
-
super().configure_device(
|
|
131
|
+
super().configure_device(params)
|
|
132
132
|
|
|
133
133
|
if not self._is_connected or self._client_socket is None:
|
|
134
134
|
return
|
|
@@ -233,10 +233,10 @@ class OTBMuovi(BaseDevice):
|
|
|
233
233
|
self._process_data(data_to_process)
|
|
234
234
|
self._received_bytes = self._received_bytes[self._buffer_size :]
|
|
235
235
|
|
|
236
|
-
def _process_data(self,
|
|
237
|
-
super()._process_data(
|
|
236
|
+
def _process_data(self, input: bytearray) -> None:
|
|
237
|
+
super()._process_data(input)
|
|
238
238
|
|
|
239
|
-
decoded_data = self._bytes_to_integers(
|
|
239
|
+
decoded_data = self._bytes_to_integers(input)
|
|
240
240
|
|
|
241
241
|
processed_data = decoded_data.reshape(
|
|
242
242
|
self._number_of_channels, -1, order="F"
|
|
@@ -22,7 +22,7 @@ from biosignal_device_interface.devices.core.base_device import BaseDevice
|
|
|
22
22
|
from biosignal_device_interface.constants.devices.core.base_device_constants import (
|
|
23
23
|
DeviceType,
|
|
24
24
|
)
|
|
25
|
-
from biosignal_device_interface.constants.devices.otb.
|
|
25
|
+
from biosignal_device_interface.constants.devices.otb.otb_quattrocento_light_constants import (
|
|
26
26
|
COMMAND_START_STREAMING,
|
|
27
27
|
COMMAND_STOP_STREAMING,
|
|
28
28
|
CONNECTION_RESPONSE,
|
|
@@ -110,9 +110,9 @@ class OTBQuattrocentoLight(BaseDevice):
|
|
|
110
110
|
self._interface.close()
|
|
111
111
|
|
|
112
112
|
def configure_device(
|
|
113
|
-
self,
|
|
113
|
+
self, params: Dict[str, Union[Enum, Dict[str, Enum]]] # type: ignore
|
|
114
114
|
) -> None:
|
|
115
|
-
super().configure_device(
|
|
115
|
+
super().configure_device(params)
|
|
116
116
|
|
|
117
117
|
# Configure the device
|
|
118
118
|
self._number_of_biosignal_channels = len(self._grids) * self._grid_size
|
|
@@ -191,11 +191,11 @@ class OTBQuattrocentoLight(BaseDevice):
|
|
|
191
191
|
self._process_data(data_to_process)
|
|
192
192
|
self._received_bytes = self._received_bytes[self._buffer_size :]
|
|
193
193
|
|
|
194
|
-
def _process_data(self,
|
|
195
|
-
super()._process_data(
|
|
194
|
+
def _process_data(self, input: bytearray) -> None:
|
|
195
|
+
super()._process_data(input)
|
|
196
196
|
|
|
197
197
|
# Decode the data
|
|
198
|
-
decoded_data = np.frombuffer(
|
|
198
|
+
decoded_data = np.frombuffer(input, dtype=np.int16)
|
|
199
199
|
|
|
200
200
|
# Reshape it to the correct format
|
|
201
201
|
processed_data = decoded_data.reshape(
|
|
@@ -207,29 +207,5 @@ class OTBQuattrocentoLight(BaseDevice):
|
|
|
207
207
|
self.biosignal_data_available.emit(self._extract_biosignal_data(processed_data))
|
|
208
208
|
self.auxiliary_data_available.emit(self._extract_auxiliary_data(processed_data))
|
|
209
209
|
|
|
210
|
-
def get_device_information(self) -> Dict[str, Enum | int | float | str]:
|
|
210
|
+
def get_device_information(self) -> Dict[str, Enum | int | float | str]: # type: ignore
|
|
211
211
|
return super().get_device_information()
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
class OTBQuattrocento(BaseDevice):
|
|
215
|
-
"""
|
|
216
|
-
Quattrocento device class derived from BaseDevice class.
|
|
217
|
-
|
|
218
|
-
The Quattrocento class is using a TCP/IP protocol to communicate with the device.
|
|
219
|
-
"""
|
|
220
|
-
|
|
221
|
-
def __init__(
|
|
222
|
-
self,
|
|
223
|
-
parent: Union[QMainWindow, QWidget] = None,
|
|
224
|
-
) -> None:
|
|
225
|
-
super().__init__(parent)
|
|
226
|
-
|
|
227
|
-
# Device Parameters
|
|
228
|
-
self._device_type: DeviceType = DeviceType.OTB_QUATTROCENTO
|
|
229
|
-
|
|
230
|
-
# Device Information
|
|
231
|
-
self._conversion_factor_biosignal: float = 5 / (2**16) / 150 * 1000
|
|
232
|
-
self._conversion_factor_auxiliary: float = 5 / (2**16) / 0.5
|
|
233
|
-
|
|
234
|
-
# Connection Parameters
|
|
235
|
-
self._interface: QTcpSocket = QTcpSocket()
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -14,10 +14,14 @@ from biosignal_device_interface.gui.device_template_widgets.core.base_multiple_d
|
|
|
14
14
|
from biosignal_device_interface.constants.devices.core.base_device_constants import (
|
|
15
15
|
DeviceType,
|
|
16
16
|
)
|
|
17
|
-
from biosignal_device_interface.gui.device_template_widgets import (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_plus_widget import (
|
|
18
|
+
OTBMuoviPlusWidget,
|
|
19
|
+
)
|
|
20
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_widget import (
|
|
21
|
+
OTBMuoviWidget,
|
|
22
|
+
)
|
|
23
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_quattrocento_light_widget import (
|
|
24
|
+
OTBQuattrocentoLightWidget,
|
|
21
25
|
)
|
|
22
26
|
|
|
23
27
|
if TYPE_CHECKING:
|
|
@@ -32,8 +36,8 @@ class AllDevicesWidget(BaseMultipleDevicesWidget):
|
|
|
32
36
|
super().__init__(parent)
|
|
33
37
|
|
|
34
38
|
self._device_selection: Dict[DeviceType, BaseDeviceWidget] = {
|
|
35
|
-
DeviceType.OTB_QUATTROCENTO_LIGHT:
|
|
36
|
-
DeviceType.OTB_MUOVI:
|
|
37
|
-
DeviceType.OTB_MUOVI_PLUS:
|
|
39
|
+
DeviceType.OTB_QUATTROCENTO_LIGHT: OTBQuattrocentoLightWidget(self),
|
|
40
|
+
DeviceType.OTB_MUOVI: OTBMuoviWidget(self),
|
|
41
|
+
DeviceType.OTB_MUOVI_PLUS: OTBMuoviPlusWidget(self),
|
|
38
42
|
}
|
|
39
43
|
self._set_devices(self._device_selection)
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,10 +7,14 @@ from biosignal_device_interface.gui.device_template_widgets.core.base_multiple_d
|
|
|
7
7
|
from biosignal_device_interface.constants.devices.core.base_device_constants import (
|
|
8
8
|
DeviceType,
|
|
9
9
|
)
|
|
10
|
-
from biosignal_device_interface.gui.device_template_widgets.otb import (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_plus_widget import (
|
|
11
|
+
OTBMuoviPlusWidget,
|
|
12
|
+
)
|
|
13
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_widget import (
|
|
14
|
+
OTBMuoviWidget,
|
|
15
|
+
)
|
|
16
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_quattrocento_light_widget import (
|
|
17
|
+
OTBQuattrocentoLightWidget,
|
|
14
18
|
)
|
|
15
19
|
|
|
16
20
|
if TYPE_CHECKING:
|
|
@@ -25,8 +29,8 @@ class OTBDevicesWidget(BaseMultipleDevicesWidget):
|
|
|
25
29
|
super().__init__(parent)
|
|
26
30
|
|
|
27
31
|
self._device_selection: Dict[DeviceType, BaseDeviceWidget] = {
|
|
28
|
-
DeviceType.OTB_QUATTROCENTO_LIGHT:
|
|
29
|
-
DeviceType.OTB_MUOVI:
|
|
30
|
-
DeviceType.OTB_MUOVI_PLUS:
|
|
32
|
+
DeviceType.OTB_QUATTROCENTO_LIGHT: OTBQuattrocentoLightWidget(self),
|
|
33
|
+
DeviceType.OTB_MUOVI: OTBMuoviWidget(self),
|
|
34
|
+
DeviceType.OTB_MUOVI_PLUS: OTBMuoviPlusWidget(self),
|
|
31
35
|
}
|
|
32
36
|
self._set_devices(self._device_selection)
|
|
@@ -7,7 +7,7 @@ from biosignal_device_interface.gui.device_template_widgets.core.base_device_wid
|
|
|
7
7
|
from biosignal_device_interface.gui.ui_compiled.otb_muovi_template_widget import (
|
|
8
8
|
Ui_MuoviForm,
|
|
9
9
|
)
|
|
10
|
-
from biosignal_device_interface.devices import OTBMuovi
|
|
10
|
+
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi
|
|
11
11
|
|
|
12
12
|
# Constants
|
|
13
13
|
from biosignal_device_interface.constants.devices.otb.otb_muovi_constants import (
|
|
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
|
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class OTBMuoviPlusWidget(BaseDeviceWidget):
|
|
31
31
|
def __init__(self, parent: QWidget | QMainWindow | None = None):
|
|
32
32
|
super().__init__(parent)
|
|
33
33
|
|
|
@@ -7,7 +7,7 @@ from biosignal_device_interface.gui.device_template_widgets.core.base_device_wid
|
|
|
7
7
|
from biosignal_device_interface.gui.ui_compiled.otb_muovi_template_widget import (
|
|
8
8
|
Ui_MuoviForm,
|
|
9
9
|
)
|
|
10
|
-
from biosignal_device_interface.devices import OTBMuovi
|
|
10
|
+
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi
|
|
11
11
|
|
|
12
12
|
# Constants
|
|
13
13
|
from biosignal_device_interface.constants.devices.otb.otb_muovi_constants import (
|
|
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
|
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class OTBMuoviWidget(BaseDeviceWidget):
|
|
31
31
|
def __init__(self, parent: QWidget | QMainWindow | None = None):
|
|
32
32
|
super().__init__(parent)
|
|
33
33
|
|
|
@@ -7,10 +7,10 @@ from biosignal_device_interface.gui.device_template_widgets.core.base_device_wid
|
|
|
7
7
|
from biosignal_device_interface.gui.ui_compiled.otb_quattrocento_light_template_widget import (
|
|
8
8
|
Ui_QuattrocentoLightForm,
|
|
9
9
|
)
|
|
10
|
-
from biosignal_device_interface.devices import OTBQuattrocentoLight
|
|
10
|
+
from biosignal_device_interface.devices.otb.otb_quattrocento_light import OTBQuattrocentoLight
|
|
11
11
|
|
|
12
12
|
# Constants
|
|
13
|
-
from biosignal_device_interface.constants.devices.otb.
|
|
13
|
+
from biosignal_device_interface.constants.devices.otb.otb_quattrocento_light_constants import (
|
|
14
14
|
QuattrocentoLightSamplingFrequency,
|
|
15
15
|
QuattrocentoLightStreamingFrequency,
|
|
16
16
|
)
|
|
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
|
|
|
27
27
|
)
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class OTBQuattrocentoLightWidget(BaseDeviceWidget):
|
|
31
31
|
def __init__(self, parent: QWidget | QMainWindow | None = None):
|
|
32
32
|
super().__init__(parent)
|
|
33
33
|
self._set_device(OTBQuattrocentoLight(self))
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "biosignal-device-interface"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.12b"
|
|
4
4
|
description = "Python communication interface to many biosignal devices manufactured by several companies to easy integration in custom PySide6 applications."
|
|
5
5
|
authors = ["Dominik I. Braun <dome.braun@fau.de>"]
|
|
6
6
|
license = "CC BY-SA 4.0"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Import Devices to be used from biosignal_device_interface.devices
|
|
2
|
-
# import Muovi, MindRoveBracelet, Quattrocento, QuattrocentoLight, ...
|
|
3
|
-
|
|
4
|
-
# OTB Devices
|
|
5
|
-
from biosignal_device_interface.devices.otb.otb_quattrocento import (
|
|
6
|
-
OTBQuattrocento,
|
|
7
|
-
OTBQuattrocentoLight,
|
|
8
|
-
)
|
|
9
|
-
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Import OTB Devices to be used from biosignal_device_interface.devices
|
|
2
|
-
# import Muovi, Quattrocento, QuattrocentoLight, ...
|
|
3
|
-
|
|
4
|
-
# OTB Devices
|
|
5
|
-
from biosignal_device_interface.devices.otb.otb_quattrocento import (
|
|
6
|
-
OTBQuattrocento as Quattrocento,
|
|
7
|
-
OTBQuattrocentoLight as QuattrocentoLight,
|
|
8
|
-
)
|
|
9
|
-
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi as Muovi
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# OTB Devices
|
|
2
|
-
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_widget import (
|
|
3
|
-
MuoviWidget,
|
|
4
|
-
)
|
|
5
|
-
from biosignal_device_interface.gui.device_template_widgets.otb.otb_muovi_plus_widget import (
|
|
6
|
-
OTBMuoviWidget as MuoviPlusWidget,
|
|
7
|
-
)
|
|
8
|
-
from biosignal_device_interface.gui.device_template_widgets.otb.otb_quattrocento_light_widget import (
|
|
9
|
-
QuattrocentoLightWidget,
|
|
10
|
-
)
|
|
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
|