Skip to main content

Librería modular para adquisición y procesamiento EEG de UHB

Project description

EEG_UHB

Library for Electroencephalography (EEG) signal acquisition and processing using Unicorn Hybrid Black (UHB) commercial equipment using Lab Streaming Layer (LSL).

Install

You can install the library directly from PyPI using pip:

pip install eeg-uhb

Installation from GitHub (optional)

If you want to install the latest version directly from the repository, run:

pip install git+https://github.com/IngAmaury/EEG_UHB_LIBRARY.git

Installation in a Python virtual environment

  1. Open a terminal or Anaconda Prompt.
  2. Create a new virtual environment (for example: myenv):
python -m venv myenv
  • Using Anaconda Prompt: bash conda create --name myenv python=3.8
  1. Enable the virtual environment:
    • Windows:
    myenv\Scripts\activate
    
    • Anaconda Prompt:
    conda activate myenv
    
    • macOS/Linux::
    source myenv/bin/activate
    
  2. Install the library inside the virtual environment:
(myenv) pip install eeg-uhb

[!NOTE] It is recommended to install in a virtual environment to avoid conflicts with other system libraries.

Dependencies

The library requires the following dependencies, which will be installed automatically with pip:

  • numpy
  • pylsl
  • scipy
  • scikit-fuzzy

Use

from eeg_uhb import EEGAcquisitionManager
import time

if __name__=='__main__':
    EEG = EEGAcquisitionManager()
    start_time = time.time()
    duration = 0.04  # segundos
    
    # the stream_name depends on the one you choose
    EEG.start_acquisition(stream_name='UN-2023.07.40')
    start = time.sleep(duration)
    print(EEG.data)
    print(f'Length: {len(EEG.data)}')
    EEG.stop_acquisition()

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License.
See the LICENSE file for details.

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

eeg_uhb-0.1.1.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eeg_uhb-0.1.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file eeg_uhb-0.1.1.tar.gz.

File metadata

  • Download URL: eeg_uhb-0.1.1.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for eeg_uhb-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6f04316f2e5d2a6a3b258966a1599827f10b65388a1b8ff93adcfac28c3af556
MD5 c469ffe7f19182a2f538aad9f62fd52a
BLAKE2b-256 14654459b5664bb612feee642383c5baf007a496b5f0a7a93ceebe68bbb96f10

See more details on using hashes here.

File details

Details for the file eeg_uhb-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: eeg_uhb-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for eeg_uhb-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aae9b57098b32cff9dbbf0af29d28c6d64887c81057f62b726437e669561f8a3
MD5 e540290c611323e22057430aeff7706c
BLAKE2b-256 a4770108ef902e7d822295089c47db379ac4899d92dada2d557962e79403563e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page