Skip to main content

EEG preprocessing pipeline on Python

Project description

How to convert a function from MATLAB to Python

  1. Get a MATLAB file to load and process an EEG file

  2. Convert the code using GPT4 or when short Copilot and test in a Notebook. Once the code runs without erroring, move to 3.

  3. Use the Jupyter code to create a Python file (not notebook) to load the same file as MATLAB and process it as well (in plain Python, not in a subfunction)

  4. Start the debugger in both and compare. Note that it is better to use the debugger on Python file than Jupyter Notebook (could not get it to stop)

  5. Once the result is the same, package the Python code in a function with the same name as MATLAB

  6. Write the function to compare (see example) and the helper Python function to load the file (note that there could be a general Python helper function)

Install package

Packaging was done following the tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/ with setuptools

To install the package, run:

pip install eegprep==0.0.2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

eegprep-0.0.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file eegprep-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: eegprep-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for eegprep-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d92df78596b60d6e13ed3c5a4728b64336a725294dabf7f3a32b97dc44289efd
MD5 bb5e90a6dd7fcea55102c511b14d8cce
BLAKE2b-256 c1d05c06a177d19148b4f4886be414c41299d57d369545d334dba0bbb47e6976

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