Python interface to control the Rehastim2 and P24 devices.
Project description
pyScienceMode
Functional electrical stimulation (FES) research would benefit of an open, flexible control method for customizable
stimulation patterns. pyScienceMode provides a unified Python API for both Rehastim2 and P24 devices, enabling real-time
adjustment of frequency, intensity, pulse width, train duration and sensor-triggered control. It supports rapid
prototyping of personalized, real-time FES protocols, making novel rehabilitation strategies reproducible, adaptable and
easily extensible as new hardware emerges. Please have a look to the documentation for more information about
pyScienceMode.
How to install
These are the different ways to install pyScienceMode for the Rehastim2 control.
To control the P24, please follow the given steps in Installing from source as it requires an additional wheel compilation.
Installing from PyPI
pip install pysciencemode
Installing from Anaconda
conda install -c conda-forge pysciencemode
Installing from source
Please refer to the documentation to install pyScienceMode.
Additional installation step for the P24 stimulator
pysciencemode is not compatible with macOS and Linux for the control of the stimulator P24. As soon as the P24 wrapper will be compatible with macOS and Linux, we will update the documentation.
For Python 3.10 only: navigate to the folder where the file sciencemode_cffi-1.0.0-cp310-cp310-win_amd64.whl is located and run the following command
pip install sciencemode_cffi-1.0.0-cp310-cp310-win_amd64.whl
For other Python version: build your own wheel from https://github.com/ScienceMode/ScienceMode4_python_wrapper and pip install it in your environment.
How to use
A set of example is provided in the examples folder to show how to control the Rehastim2 and the P24:
Please take a look at the documentation example page for description of each example.
Instruction for use
User manual Rehastim2: https://github.com/ScienceMode/ScienceMode2/tree/main/01_User%20Manual
User manual P24: https://github.com/ScienceMode/ScienceMode4_P24/tree/main/01_IFU_and_Protocol
The P24 Science/P24 Module is a device that can be controlled by a computer system via a specified interface to generate and output electrical pulses. The P24 Science/P24 Module is intended for research applications only and is not intended to be used for medical purposes on human beings according to Regulation (EU) 2017/745.
Main differences between the Rehastim2 and the P24
They are some differences between the Rehastim2 and the P24. Please take a look at the documentation main differences page for more information.
How to contribute
You are welcome to contribute to this project by following the steps describes in the how to contribute page.
How to cite
Please refer to the documentation cite page to cite pyScienceMode.
Acknowledgements
The software development was supported by Ingénierie de technologies interactives en réadaptation INTER #160 OptiStim.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysciencemode-1.1.5.tar.gz.
File metadata
- Download URL: pysciencemode-1.1.5.tar.gz
- Upload date:
- Size: 14.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06557e593cfc52d064e6a7a75a40921d1ca2c3e6a06f0a4275ee8102c5793964
|
|
| MD5 |
b6577e3be55871f47b8634bdbe829e7c
|
|
| BLAKE2b-256 |
1c19fb0a11e902913dc13b6a5b04ac9597c9e5a9709660b2cc94807668ec4bb1
|
File details
Details for the file pysciencemode-1.1.5-py3-none-any.whl.
File metadata
- Download URL: pysciencemode-1.1.5-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f51a4d5afee4ce3944bb9a04e50dff6c0b57ba4e25b8dc3f5602084a6b9833ea
|
|
| MD5 |
97dd712782d1b20f96fd0fa0ca15e499
|
|
| BLAKE2b-256 |
58ffa70e3ead6d1a6b0e5f6b4cc6cad24061437cd04f5949fecbbfe1dee957f2
|