Python API for Mentalab biosignal aquisition devices
Project description
Explorepy overview
Explorepy is Mentalab’s open-source Python-based biosignal acquisition API for working with Mentalab Explore device. Amongst many things, it provides the following features:
Real-time streaming of ExG, orientation and environmental data
Real-time visualization
Data recording in CSV and BDF+ formats
LSL integration
Impedance measurement
Explore device configuration
Quick installation
On a Windows machine, Explorepy can be installed using the installable file uploaded in the release page or using pip. Please note using the installable files, the dependencies will be installed automatically.
The following instructions are for other operating systems or in case you want to build the package yourself on Windows.
Requirements
Python 3.6 or newer versions
Visual Studio 2015 community edition (only Windows, in case of building the package)
Bluetooth header files (only Linux -> use this command: sudo apt-get install libbluetooth-dev)
Please check out the installation page for more detailed instructions.
To install explorepy from PyPI run:
pip install explorepy
To install the latest development version (git must be installed before running this command):
pip install git+https://github.com/Mentalab-hub/explorepy
Get started
CLI command
For a simple, quick start of Explorepy, run:
explorepy acquire -n Explore_XXXX
Enter explorepy -h for help.
Python code
When working in Python, the following connects to the Explore device and prints the data.
import explorepy explorer = explorepy.Explore() explorer.connect(device_name="Explore_XXXX") # Put your device Bluetooth name explorer.acquire()
You can also visualize the data in real-time.
import explorepy explorer = explorepy.Explore() explorer.connect(device_name="Explore_XXXX") # Put your device Bluetooth name explorer.visualize(bp_freq=(.5, 30), notch_freq=50)
EEG:
ECG with heart beat detection:
Documentation
For the full documentation of the API, visit: https://explorepy.readthedocs.io/
License
This project is licensed under the MIT license. You can reach us at contact@mentalab.com.
Changelog
1.3.0 (30-12-2020)
GUI resizing for different screen resolutions
Added event button to dashboard
Improvement of impedance measurement
Fixed minor bugs
1.2.0 (25-11-2020)
Standalone installer for Windows OS
Fix bugs in ExploreSDK
Create new file on device settings change
1.1.0 (27-08-2020)
MacOS support
Fix bugs
Add module disable/enable feature
Enhanced user interface
Add unique lsl stream names
1.0.0 (22-05-2020)
Add ExploreSDK as the Bluetooth interface
New dark theme
Record module in dashboard
Improvement in visualization perfrmance
CLI migration to Click
0.6.0 (17-02-2020)
EDF (BDF+) file writer
Channel disable/enable feature
Calibration of movement sensors
Extraction of physical orientation (angle and rotation)
Soft marker event
Visualization performance enhancement
Automatic number of channel and sampling rate detection
Exception handling improvement
Command for soft reset of Explore
Marker visualization
0.5.0 (25-11-2019)
Impedance measurement
Send commands to device
Configuring device settings
Update push to lsl feature
0.4.0 (09-09-2019)
Added marker feature
Timer based recording
Fixed a bug in csv file writer
Fixed a bug in device reconnect
Improved performance of dashboard visualization
0.3.1 (28-05-2019)
Fixed a bug in 8-channel ExG packet conversion
Fixed a minor bug in the record function
Updated the documentation
0.3.0 (10-05-2019)
Explore dashboard
Real-time visualization of ExG and orientation signal
Device information in Dashboard
Environmental data (battery, temperature and light)
Real-time bandpass filter
New packet structures (ADS1294R & ADS1298R)
Heart rate estimation and R-peaks detector in dashboard
0.2.0 (2019-03-08)
Added real-time recording feature
Added Command Line Interface
Added lsl integration
Added new packet classes
Fixed reconnect issues
Removed input requests inside functions
0.1.0 (2019-01-18)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file explorepy-1.3.0.tar.gz
.
File metadata
- Download URL: explorepy-1.3.0.tar.gz
- Upload date:
- Size: 1.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bad21ca92df6639b0fa5a23f38dd87428ecd37cc495acf8db04f7cd323cf790 |
|
MD5 | 4a190029dc1577564338aaab9c23d537 |
|
BLAKE2b-256 | 17bcd8a5ff5255e508dbc0e80d1602eab522f543a052eba99d263536fd17dfda |
File details
Details for the file explorepy-1.3.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: explorepy-1.3.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 130.7 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2da470146240210406b7a8a701aa5c4a6c61c56dbad10258a2deb9af568705d4 |
|
MD5 | d48fb3f533f9fffb038bb855cd42eee4 |
|
BLAKE2b-256 | c5ab43a6e316804273cf096428af7a32f52729d68d884563e2a438adb53ae859 |
File details
Details for the file explorepy-1.3.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: explorepy-1.3.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 130.7 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 576f0b76e30d07972a3e88db448c1766b0d34c492408fd50a673f1700a5369de |
|
MD5 | 2ddd862e9ecd2e5bb8b912a6466840c7 |
|
BLAKE2b-256 | 381abd89d658deac4e48f2de342a4b324ffb03a39d25cea2555b666807db2bb6 |
File details
Details for the file explorepy-1.3.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: explorepy-1.3.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 210.6 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c913474aeef15984a18583f6175a6d983b4e115b850d4e8cfa77da26d724a3f5 |
|
MD5 | d50c569a39db6dda54868a570a0caff0 |
|
BLAKE2b-256 | e6f912eeea7598d2e6f6d23f5c4e611e80eb21b73880ab217ab0dfcfe1135ccf |
File details
Details for the file explorepy-1.3.0-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: explorepy-1.3.0-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 210.5 kB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f99c23a0fe78b5dca7889ea81cc0667abb5cd304e76f7f0cdf19979ab28058 |
|
MD5 | a214c651363fc77cbc5a4918589862b2 |
|
BLAKE2b-256 | d242f9aec0f5d00dde21ade6a4d727d246fee5d7151aebd01b0684681de2217a |