biosignal-device-interface 0.2.4__tar.gz → 0.2.6__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.2.6/.github/workflows/publish_pypi.yml +29 -0
- biosignal_device_interface-0.2.6/.github/workflows/sphinx.yml +38 -0
- biosignal_device_interface-0.2.6/.gitignore +165 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/PKG-INFO +11 -18
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/core/base_device_constants.py +4 -0
- biosignal_device_interface-0.2.6/biosignal_device_interface/constants/devices/otb/otb_sessantaquattro_constants.py +227 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/__init__.py +2 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/otb/__init__.py +6 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/otb/otb_muovi.py +1 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/otb/otb_quattrocento.py +1 -1
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/otb/otb_quattrocento_light.py +1 -1
- biosignal_device_interface-0.2.6/biosignal_device_interface/devices/otb/otb_sessantaquattro.py +363 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/all_devices_widget.py +4 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_devices_widget.py +4 -0
- biosignal_device_interface-0.2.6/biosignal_device_interface/gui/device_template_widgets/otb/otb_sessantaquattro_widget.py +265 -0
- biosignal_device_interface-0.2.6/biosignal_device_interface/gui/ui/otb_sessantaquattro_template_widget.ui +317 -0
- biosignal_device_interface-0.2.6/biosignal_device_interface/gui/ui_compiled/otb_sessantaquattro_template_widget.py +241 -0
- biosignal_device_interface-0.2.6/docs/Makefile +20 -0
- biosignal_device_interface-0.2.6/docs/make.bat +35 -0
- biosignal_device_interface-0.2.6/docs/source/README.md +115 -0
- biosignal_device_interface-0.2.6/docs/source/api_documentation.rst +44 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/1_integrating_a_device.ipynb +43 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/1_integrating_a_device.py +72 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/1_integrating_a_device.py.md5 +1 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/1_integrating_a_device.rst +119 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/1_integrating_a_device_codeobj.pickle +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/2_integrating_multiple_devices.ipynb +43 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/2_integrating_multiple_devices.py +72 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/2_integrating_multiple_devices.rst +119 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/2_integrating_multiple_devices_codeobj.pickle +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/3_integrating_device_interface_and_biosignal_plot.ipynb +43 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/3_integrating_device_interface_and_biosignal_plot.py +85 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/3_integrating_device_interface_and_biosignal_plot.rst +132 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/3_integrating_device_interface_and_biosignal_plot_codeobj.pickle +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/4_implementing_new_device.ipynb +143 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/4_implementing_new_device.py +275 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/4_implementing_new_device.rst +345 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/4_implementing_new_device_codeobj.pickle +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/auto_examples_jupyter.zip +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/auto_examples_python.zip +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/images/thumb/sphx_glr_1_integrating_a_device_thumb.png +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/images/thumb/sphx_glr_2_integrating_multiple_devices_thumb.png +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/images/thumb/sphx_glr_3_integrating_device_interface_and_biosignal_plot_thumb.png +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/images/thumb/sphx_glr_4_implementing_new_device_thumb.png +0 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/index.rst +117 -0
- biosignal_device_interface-0.2.6/docs/source/auto_examples/sg_execution_times.rst +46 -0
- biosignal_device_interface-0.2.6/docs/source/conf.py +96 -0
- biosignal_device_interface-0.2.6/docs/source/index.rst +15 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/all_devices_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/core/base_device_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/core/base_multiple_device_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/device_widgets.rst +30 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/otb/device/otb_muovi_plus_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/otb/device/otb_muovi_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/otb/device/otb_quattrocento_light_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/device_widgets/otb/otb_devices_widget.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/core/base_device.rst +8 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/core/code/constants/base_device_constants.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/core/code/device/code_base_device.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/code/constants/otb_constants.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/code/constants/otb_muovi_constants.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/code/constants/otb_quattrocento_light_constants.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/code/device/code_otb_muovi.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/code/device/code_otb_quattrocento_light.rst +7 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/otb.rst +9 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/otb_muovi.rst +8 -0
- biosignal_device_interface-0.2.6/docs/source/modules/devices/otb/otb_quattrocento_light.rst +8 -0
- biosignal_device_interface-0.2.6/docs/source/sg_execution_times.rst +46 -0
- biosignal_device_interface-0.2.6/examples/1_integrating_a_device.py +74 -0
- biosignal_device_interface-0.2.6/examples/2_integrating_multiple_devices.py +72 -0
- biosignal_device_interface-0.2.6/examples/3_integrating_device_interface_and_biosignal_plot.py +86 -0
- biosignal_device_interface-0.2.6/examples/4_implementing_new_device.py +275 -0
- biosignal_device_interface-0.2.6/examples/README.rst +5 -0
- biosignal_device_interface-0.2.6/pyproject.toml +38 -0
- biosignal_device_interface-0.2.6/tests/test_imports.py +113 -0
- biosignal_device_interface-0.2.6/uv.lock +2298 -0
- biosignal_device_interface-0.2.4/pyproject.toml +0 -41
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/LICENSE +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/README.md +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/otb/otb_constants.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/otb/otb_muovi_constants.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/otb/otb_quattrocento_constants.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/otb/otb_quattrocento_light_constants.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/devices/otb/otb_syncstation_constants.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/constants/plots/color_palette.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/core/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/core/base_device.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/devices/otb/otb_syncstation.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/core/base_device_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/core/base_multiple_devices_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/__init__.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_plus_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_muovi_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_quattrocento_light_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_quattrocento_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/device_template_widgets/otb/otb_syncstation_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/plot_widgets/biosignal_plot_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/devices_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/otb_muovi_plus_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/otb_muovi_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/otb_quattrocento_light_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/otb_quattrocento_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui/otb_syncstation_template_widget.ui +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/devices_template_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/otb_muovi_plus_template_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/otb_muovi_template_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/otb_quattrocento_light_template_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/otb_quattrocento_template_widget.py +0 -0
- {biosignal_device_interface-0.2.4 → biosignal_device_interface-0.2.6}/biosignal_device_interface/gui/ui_compiled/otb_syncstation_template_widget.py +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # Only trigger on the main branch
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
name: Build and Publish
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- name: Checkout repository
|
|
15
|
+
uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v4
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.x"
|
|
21
|
+
|
|
22
|
+
- name: Install Poetry
|
|
23
|
+
run: pip install poetry
|
|
24
|
+
|
|
25
|
+
- name: Authenticate PyPI
|
|
26
|
+
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
|
|
27
|
+
|
|
28
|
+
- name: Publish to PyPI
|
|
29
|
+
run: poetry publish --build --no-interaction
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: publish-docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy-docs:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Set up Python 3.10
|
|
15
|
+
uses: actions/setup-python@v4
|
|
16
|
+
with:
|
|
17
|
+
python-version: 3.10.14
|
|
18
|
+
|
|
19
|
+
- name: Install uv
|
|
20
|
+
uses: astral-sh/setup-uv@v5
|
|
21
|
+
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: |
|
|
24
|
+
sudo apt-get update
|
|
25
|
+
sudo apt-get install -y libegl1 libgl1
|
|
26
|
+
uv sync --group docs
|
|
27
|
+
|
|
28
|
+
- name: Build the docs
|
|
29
|
+
run: |
|
|
30
|
+
cd docs
|
|
31
|
+
uv run make html
|
|
32
|
+
cd ..
|
|
33
|
+
|
|
34
|
+
- name: Deploy
|
|
35
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
36
|
+
with:
|
|
37
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
publish_dir: docs/build/html
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
.idea/
|
|
163
|
+
|
|
164
|
+
# Visual Studio Code
|
|
165
|
+
.vscode/
|
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: biosignal-device-interface
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: Python communication interface to many biosignal devices manufactured by several companies to easy integration in custom PySide6 applications.
|
|
5
|
+
Author-email: "Dominik I. Braun" <dome.braun@fau.de>, "Raul C. Sîmpetru" <raul.simpetru@fau.de>
|
|
5
6
|
License: GPL-3.0
|
|
6
7
|
License-File: LICENSE
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Requires-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
Requires-Dist:
|
|
16
|
-
Requires-Dist: matplotlib (>=3.9.0,<4.0.0)
|
|
17
|
-
Requires-Dist: numpy (>=1.26.4,<2.0.0)
|
|
18
|
-
Requires-Dist: psutil (>=5.9.8,<6.0.0)
|
|
19
|
-
Requires-Dist: pyside6 (>=6.7.0,<7.0.0)
|
|
20
|
-
Requires-Dist: scipy (>=1.14.0,<2.0.0)
|
|
21
|
-
Requires-Dist: tornado (>=6.4.2,<7.0.0)
|
|
22
|
-
Requires-Dist: vispy (>=0.14.3,<0.15.0)
|
|
8
|
+
Requires-Python: <3.13,>=3.10
|
|
9
|
+
Requires-Dist: aenum>=3.1.15
|
|
10
|
+
Requires-Dist: matplotlib>=3.9.0
|
|
11
|
+
Requires-Dist: numpy>=1.26.4
|
|
12
|
+
Requires-Dist: psutil>=5.9.8
|
|
13
|
+
Requires-Dist: pyside6>=6.7.0
|
|
14
|
+
Requires-Dist: scipy>=1.14.0
|
|
15
|
+
Requires-Dist: tornado>=6.4.2
|
|
16
|
+
Requires-Dist: vispy>=0.14.3
|
|
23
17
|
Description-Content-Type: text/markdown
|
|
24
18
|
|
|
25
19
|
# Biosignal-Device-Interface
|
|
@@ -134,4 +128,3 @@ Project Link: [https://github.com/NsquaredLab/Biosignal-Device-Interface](https:
|
|
|
134
128
|
Note: The example scripts do not provide you with the same level of utility for GUI implementations.
|
|
135
129
|
|
|
136
130
|
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
|
137
|
-
|
|
@@ -21,6 +21,7 @@ class DeviceType(Enum):
|
|
|
21
21
|
OTB_MUOVI = auto(), "OT Bioelettronica Muovi"
|
|
22
22
|
OTB_MUOVI_PLUS = auto(), "OT Bioelettronica Muovi Plus"
|
|
23
23
|
OTB_SYNCSTATION = auto(), "OT Bioelettronica SyncStation"
|
|
24
|
+
OTB_SESSANTAQUATTRO = auto(), "OT Bioelettronica Sessantaquattro"
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
class OTBDeviceType(Enum):
|
|
@@ -36,6 +37,7 @@ class OTBDeviceType(Enum):
|
|
|
36
37
|
MUOVI = auto(), "Muovi"
|
|
37
38
|
MUOVI_PLUS = auto(), "Muovi Plus"
|
|
38
39
|
SYNCSTATION = auto(), "SyncStation"
|
|
40
|
+
SESSANTAQUATTRO = auto(), "Sessantaquattro"
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
class DeviceChannelTypes(Enum):
|
|
@@ -58,4 +60,6 @@ DEVICE_NAME_DICT: dict[DeviceType | OTBDeviceType, str] = {
|
|
|
58
60
|
OTBDeviceType.MUOVI_PLUS: "Muovi Plus",
|
|
59
61
|
DeviceType.OTB_SYNCSTATION: "SyncStation",
|
|
60
62
|
OTBDeviceType.SYNCSTATION: "SyncStation",
|
|
63
|
+
DeviceType.OTB_SESSANTAQUATTRO: "Sessantaquattro",
|
|
64
|
+
OTBDeviceType.SESSANTAQUATTRO: "Sessantaquattro",
|
|
61
65
|
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Constants for the Sessantaquattro device.
|
|
3
|
+
|
|
4
|
+
Developer: Dominik I. Braun
|
|
5
|
+
Contact: dome.braun@fau.de
|
|
6
|
+
Last Update: 2025-09-16
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from typing import Dict
|
|
10
|
+
from aenum import Enum, auto
|
|
11
|
+
|
|
12
|
+
from biosignal_device_interface.constants.devices.core.base_device_constants import (
|
|
13
|
+
DeviceChannelTypes,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SessantaquattroSamplingFrequencyMode(Enum):
|
|
18
|
+
"""Enum class for the sampling frequency of the Sessantaquattro device."""
|
|
19
|
+
|
|
20
|
+
_init_ = "value __doc__"
|
|
21
|
+
|
|
22
|
+
NONE = 0, "No sampling frequency set."
|
|
23
|
+
LOW = auto(), "500 Hz (2000 Hz - Accelerometer)"
|
|
24
|
+
MEDIUM = auto(), "1000 Hz (4000 Hz - Accelerometer)"
|
|
25
|
+
HIGH = auto(), "2000 Hz (8000 Hz - Accelerometer)"
|
|
26
|
+
ULTRA = auto(), "4000 Hz (16000 Hz - Accelerometer)"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class SessantaquattroDetectionMode(Enum):
|
|
30
|
+
"""
|
|
31
|
+
Enum class for the working mode of the Sessantaquattro device.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
_init_ = "value __doc__"
|
|
35
|
+
|
|
36
|
+
NONE = 0, "No working mode set."
|
|
37
|
+
MONOPOLAR = auto(), ("Monopolar Mode")
|
|
38
|
+
BIPOLAR = auto(), ("Bipolar Mode")
|
|
39
|
+
DIFFERENTIAL = auto(), ("Differential Mode")
|
|
40
|
+
ACCELEROMETER = auto(), ("Accelerometer Mode")
|
|
41
|
+
UNDEFINED = auto(), ("Undefined Mode")
|
|
42
|
+
IMPEDANCE_ADVANCED = auto(), ("Impedance Check Advanced")
|
|
43
|
+
IMPEDANCE = auto(), ("Impedance Check")
|
|
44
|
+
TEST = auto(), ("Test Mode")
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class SessantaquattroChannelMode(Enum):
|
|
48
|
+
"""
|
|
49
|
+
Enum class for the channel mode of the Sessantaquattro device.
|
|
50
|
+
"""
|
|
51
|
+
|
|
52
|
+
_init_ = "value __doc__"
|
|
53
|
+
|
|
54
|
+
NONE = 0, "No channel mode set."
|
|
55
|
+
LOW = auto(), (
|
|
56
|
+
"8 bioelec. + 2 AUX + 2 accessory (if MODE=001: 4 bio + 2 AUX + 2 acc)"
|
|
57
|
+
)
|
|
58
|
+
MEDIUM = auto(), (
|
|
59
|
+
"16 bioelec. + 2 AUX + 2 accessory (if MODE=001: 8 bio + 2 AUX + 2 acc)"
|
|
60
|
+
)
|
|
61
|
+
HIGH = auto(), (
|
|
62
|
+
"32 bioelec. + 2 AUX + 2 accessory (if MODE=001: 16 bio + 2 AUX + 2 acc)"
|
|
63
|
+
)
|
|
64
|
+
ULTRA = auto(), (
|
|
65
|
+
"64 bioelec. + 2 AUX + 2 accessory (if MODE=001: 32 bio + 2 AUX + 2 acc)"
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class SessantaquattroResolutionMode(Enum):
|
|
70
|
+
"""
|
|
71
|
+
Enum class for the resolution mode of the Sessantaquattro device.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
_init_ = "value __doc__"
|
|
75
|
+
|
|
76
|
+
NONE = 0, "No resolution mode set."
|
|
77
|
+
LOW = auto(), ("16 Bits Resolution")
|
|
78
|
+
HIGH = auto(), ("24 Bits Resolution")
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class SessantaquattroGainMode(Enum):
|
|
82
|
+
"""
|
|
83
|
+
Enum class for the gain mode of the Sessantaquattro device.
|
|
84
|
+
"""
|
|
85
|
+
|
|
86
|
+
_init_ = "value __doc__"
|
|
87
|
+
|
|
88
|
+
NONE = 0, "No gain mode set."
|
|
89
|
+
DEFAULT = auto(), (
|
|
90
|
+
"Gain x2 (for 24 bits resolution) / Gain x8 (for 16 bits resolution)"
|
|
91
|
+
)
|
|
92
|
+
LOW = auto(), ("Gain x4")
|
|
93
|
+
MEDIUM = auto(), ("Gain x6")
|
|
94
|
+
HIGH = auto(), ("Gain x8")
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
class SessantaquattroTriggerMode(Enum):
|
|
98
|
+
"""
|
|
99
|
+
Enum class for the trigger mode of the Sessantaquattro device.
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
_init_ = "value __doc__"
|
|
103
|
+
|
|
104
|
+
NONE = 0, "No trigger mode set."
|
|
105
|
+
DEFAULT = auto(), (
|
|
106
|
+
"The data transfer is controlled from GO/STOP bit, REC has no effect."
|
|
107
|
+
)
|
|
108
|
+
INTERNAL = auto(), (
|
|
109
|
+
"The data transfer ist triggered by the internal signal (phototransistor)"
|
|
110
|
+
)
|
|
111
|
+
EXTERNAL = auto(), (
|
|
112
|
+
"The data transfer is triggered by the external signal (from the adapter)"
|
|
113
|
+
)
|
|
114
|
+
SDCARD = auto(), (
|
|
115
|
+
"SDCARD: SD card acquisition starts/stops with the hardware button or with the REC bit."
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class SessantaquattroRecordingMode(Enum):
|
|
120
|
+
"""
|
|
121
|
+
Enum class for the recording mode of the Sessantaquattro device.
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
_init_ = "value __doc__"
|
|
125
|
+
|
|
126
|
+
NONE = 0, "No recording mode set."
|
|
127
|
+
STOP = auto(), ("Stop the recording. Works only if TRIG = 3 (SDCARD).")
|
|
128
|
+
START = auto(), ("Start the recording. Works only if TRIG = 3 (SDCARD).")
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
def _get_sampling_frequency(
|
|
132
|
+
detection_mode: SessantaquattroDetectionMode,
|
|
133
|
+
sampling_freq_mode: SessantaquattroSamplingFrequencyMode,
|
|
134
|
+
) -> int:
|
|
135
|
+
"""Get sampling frequency for given detection and sampling frequency modes."""
|
|
136
|
+
if detection_mode == SessantaquattroDetectionMode.ACCELEROMETER:
|
|
137
|
+
base_freq = 2000
|
|
138
|
+
else:
|
|
139
|
+
base_freq = 500
|
|
140
|
+
|
|
141
|
+
multiplier = 2 ** (sampling_freq_mode.value - 1)
|
|
142
|
+
return base_freq * multiplier
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
def _get_biosignal_channel_count(
|
|
146
|
+
sampling_freq_mode: SessantaquattroSamplingFrequencyMode,
|
|
147
|
+
detection_mode: SessantaquattroDetectionMode,
|
|
148
|
+
) -> int:
|
|
149
|
+
"""Get biosignal channel count for given modes."""
|
|
150
|
+
base_channels = 8 * (2 ** (sampling_freq_mode.value - 1))
|
|
151
|
+
|
|
152
|
+
# Bipolar mode has half the channels
|
|
153
|
+
if detection_mode == SessantaquattroDetectionMode.BIPOLAR:
|
|
154
|
+
return base_channels // 2
|
|
155
|
+
|
|
156
|
+
return base_channels
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
# Generate dictionaries using functions
|
|
160
|
+
SESSANTAQUATTRO_DETECTION_MODE_CHARACTERISTICS_DICT: Dict[
|
|
161
|
+
SessantaquattroDetectionMode, Dict[SessantaquattroSamplingFrequencyMode, int]
|
|
162
|
+
] = {
|
|
163
|
+
detection_mode: {
|
|
164
|
+
sampling_freq: _get_sampling_frequency(detection_mode, sampling_freq)
|
|
165
|
+
for sampling_freq in SessantaquattroSamplingFrequencyMode
|
|
166
|
+
if sampling_freq != SessantaquattroSamplingFrequencyMode.NONE
|
|
167
|
+
}
|
|
168
|
+
for detection_mode in SessantaquattroDetectionMode
|
|
169
|
+
if detection_mode != SessantaquattroDetectionMode.NONE
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
SESSANTAQUATTRO_CHANNEL_MODE_CHARACTERISTICS_DICT: Dict[
|
|
173
|
+
SessantaquattroSamplingFrequencyMode,
|
|
174
|
+
Dict[SessantaquattroDetectionMode, Dict[DeviceChannelTypes, int]],
|
|
175
|
+
] = {
|
|
176
|
+
sampling_freq: {
|
|
177
|
+
detection_mode: {
|
|
178
|
+
DeviceChannelTypes.BIOSIGNAL: _get_biosignal_channel_count(
|
|
179
|
+
sampling_freq, detection_mode
|
|
180
|
+
),
|
|
181
|
+
DeviceChannelTypes.AUXILIARY: 4,
|
|
182
|
+
}
|
|
183
|
+
for detection_mode in SessantaquattroDetectionMode
|
|
184
|
+
if detection_mode != SessantaquattroDetectionMode.NONE
|
|
185
|
+
}
|
|
186
|
+
for sampling_freq in SessantaquattroSamplingFrequencyMode
|
|
187
|
+
if sampling_freq != SessantaquattroSamplingFrequencyMode.NONE
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
SESSANTAQUATTRO_GAIN_MODE_CHARACTERISTICS_DICT: Dict[
|
|
191
|
+
SessantaquattroResolutionMode, Dict[SessantaquattroGainMode, float]
|
|
192
|
+
] = {
|
|
193
|
+
SessantaquattroResolutionMode.LOW: {
|
|
194
|
+
SessantaquattroGainMode.DEFAULT: 286.1e-6, # Gain8, 16-bit (in mV, originally 286.1 nV)
|
|
195
|
+
SessantaquattroGainMode.LOW: 572.2e-6, # Gain4, 16-bit (in mV, originally 572.2 nV)
|
|
196
|
+
SessantaquattroGainMode.MEDIUM: 381.5e-6, # Gain6, 16-bit (in mV, originally 381.5 nV)
|
|
197
|
+
SessantaquattroGainMode.HIGH: 286.1e-6, # Gain8, 16-bit (in mV, originally 286.1 nV)
|
|
198
|
+
},
|
|
199
|
+
SessantaquattroResolutionMode.HIGH: {
|
|
200
|
+
SessantaquattroGainMode.DEFAULT: 71.5e-6, # Gain8, 24-bit (in mV, originally 71.5 nV)
|
|
201
|
+
SessantaquattroGainMode.LOW: 143.0e-6, # Gain4, 24-bit (in mV, originally 143.0 nV)
|
|
202
|
+
SessantaquattroGainMode.MEDIUM: 95.4e-6, # Gain6, 24-bit (in mV, originally 95.4 nV)
|
|
203
|
+
SessantaquattroGainMode.HIGH: 71.5e-6, # Gain8, 24-bit (in mV, originally 71.5 nV)
|
|
204
|
+
},
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
SESSANTAQUATTRO_AUXILIARY_LSB_DICT: Dict[SessantaquattroResolutionMode, float] = {
|
|
208
|
+
SessantaquattroResolutionMode.LOW: 146.48e-6, # in mV (originally 146.48 nV)
|
|
209
|
+
SessantaquattroResolutionMode.HIGH: 572.2e-6, # in mV (originally 572.2 nV)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
SESSANTAQUATTRO_SAMPLES_PER_FRAME_DICT: Dict[SessantaquattroChannelMode, int] = {
|
|
213
|
+
SessantaquattroChannelMode.LOW: 48,
|
|
214
|
+
SessantaquattroChannelMode.MEDIUM: 28,
|
|
215
|
+
SessantaquattroChannelMode.HIGH: 16,
|
|
216
|
+
SessantaquattroChannelMode.ULTRA: 8,
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if __name__ == "__main__":
|
|
220
|
+
# Print the generated dictionaries for verification
|
|
221
|
+
import pprint
|
|
222
|
+
|
|
223
|
+
print("Sessantaquattro Detection Mode Characteristics Dictionary:")
|
|
224
|
+
pprint.pprint(SESSANTAQUATTRO_DETECTION_MODE_CHARACTERISTICS_DICT)
|
|
225
|
+
|
|
226
|
+
print("\nSessantaquattro Channel Mode Characteristics Dictionary:")
|
|
227
|
+
pprint.pprint(SESSANTAQUATTRO_CHANNEL_MODE_CHARACTERISTICS_DICT)
|
|
@@ -5,9 +5,11 @@ from biosignal_device_interface.devices.otb import (
|
|
|
5
5
|
OTBMuoviWidget,
|
|
6
6
|
OTBMuoviPlusWidget,
|
|
7
7
|
OTBQuattrocentoLightWidget,
|
|
8
|
+
OTBSessantaquattroWidget,
|
|
8
9
|
OTBMuovi,
|
|
9
10
|
OTBQuattrocento,
|
|
10
11
|
OTBQuattrocentoLight,
|
|
12
|
+
OTBSessantaquattro,
|
|
11
13
|
OTBSyncStationWidget,
|
|
12
14
|
OTBDevicesWidget,
|
|
13
15
|
)
|
|
@@ -4,6 +4,9 @@ from biosignal_device_interface.devices.otb.otb_quattrocento_light import (
|
|
|
4
4
|
)
|
|
5
5
|
from biosignal_device_interface.devices.otb.otb_muovi import OTBMuovi
|
|
6
6
|
from biosignal_device_interface.devices.otb.otb_syncstation import OTBSyncStation
|
|
7
|
+
from biosignal_device_interface.devices.otb.otb_sessantaquattro import (
|
|
8
|
+
OTBSessantaquattro,
|
|
9
|
+
)
|
|
7
10
|
|
|
8
11
|
# Widgets
|
|
9
12
|
# All OTB Devices Widget
|
|
@@ -27,3 +30,6 @@ from biosignal_device_interface.gui.device_template_widgets.otb.otb_quattrocento
|
|
|
27
30
|
from biosignal_device_interface.gui.device_template_widgets.otb.otb_syncstation_widget import (
|
|
28
31
|
OTBSyncStationWidget,
|
|
29
32
|
)
|
|
33
|
+
from biosignal_device_interface.gui.device_template_widgets.otb.otb_sessantaquattro_widget import (
|
|
34
|
+
OTBSessantaquattroWidget,
|
|
35
|
+
)
|
|
@@ -57,7 +57,7 @@ class OTBQuattrocento(BaseDevice):
|
|
|
57
57
|
|
|
58
58
|
# Device Information
|
|
59
59
|
self._conversion_factor_biosignal: float = 5 / (2**16) / 150 * 1000 # in mV
|
|
60
|
-
self._conversion_factor_auxiliary: float = 5 / (2**16) / 0.5 # in
|
|
60
|
+
self._conversion_factor_auxiliary: float = 5 / (2**16) / 0.5 # in V
|
|
61
61
|
self._number_of_streamed_channels: int = None
|
|
62
62
|
|
|
63
63
|
# Connection Parameters
|
|
@@ -60,7 +60,7 @@ class OTBQuattrocentoLight(BaseDevice):
|
|
|
60
60
|
self._auxiliary_channel_start_index: int = 384 # Fix value
|
|
61
61
|
self._number_of_auxiliary_channels: int = 16 # Fix value
|
|
62
62
|
self._conversion_factor_biosignal: float = 5 / (2**16) / 150 * 1000 # in mV
|
|
63
|
-
self._conversion_factor_auxiliary: float = 5 / (2**16) / 0.5 # in
|
|
63
|
+
self._conversion_factor_auxiliary: float = 5 / (2**16) / 0.5 # in V
|
|
64
64
|
self._bytes_per_sample: int = 2 # Fix value
|
|
65
65
|
# Quattrocento unique parameters
|
|
66
66
|
self._streaming_frequency: int | None = None
|