A Python-based simulation framework for bionic vision
Project description
pulse2percept: A Python-based simulation framework for bionic vision
Retinal degenerative diseases such as retinitis pigmentosa and macular degeneration result in profound visual impairment in more than 10 million people worldwide, and a variety of sight restoration technologies are being developed to target these diseases.
Retinal prostheses, now implanted in over 500 patients worldwide, electrically stimulate surviving cells in order to evoke neuronal responses that are interpreted by the brain as visual percepts (‘phosphenes’). However, interactions between the device electronics and the retinal neurophysiology result in perceptual distortions that may severely limit the quality of the generated visual experience:
(left: input stimulus, right: predicted percept)
Built on the NumPy and SciPy stacks, pulse2percept provides an open-source implementation of a number of computational models for state-of-the-art visual prostheses (also known as the ‘bionic eye’), such as ArgusII, BVA24, and PRIMA, to provide insight into the visual experience provided by these devices.
Simulations such as the above are likely to be critical for providing realistic estimates of prosthetic vision, thus providing regulatory bodies with guidance into what sort of visual tests are appropriate for evaluating prosthetic performance, and improving current and future technology.
If you use pulse2percept in a scholarly publication, please cite as:
M Beyeler, GM Boynton, I Fine, A Rokem (2017). pulse2percept: A Python-based simulation framework for bionic vision. Proceedings of the 16th Python in Science Conference (SciPy), p.81-88, doi:10.25080/shinma-7f4c6e7-00c.
Installation
Once you have Python 3 and pip, the stable release of pulse2percept can be installed with pip:
pip3 install pulse2percept
The bleeding-edge version of pulse2percept can be installed via:
pip3 install git+https://github.com/pulse2percept/pulse2percept
When installing the bleeding-edge version on Windows, note that you will have to install your own C compiler first. Detailed instructions for different platforms can be found in our Installation Guide.
Dependencies
pulse2percept 0.6 was the last version to support Python <= 3.5. pulse2percept 0.7+ requires Python 3.6+.
pulse2percept requires:
Python (>= 3.6)
Cython (>= 0.28)
NumPy (>= 1.9)
SciPy (>= 1.0.1)
ScikitImage (>=0.14)
Matplotlib (>= 3.0.2)
ImageIO FFMPEG (>=0.4)
JobLib (>= 0.11)
Optional packages:
Pandas for loading datasets in the datasets module.
Scikit Learn for machine learning functionality in the model_selection module.
Dask for parallel processing (a joblib alternative). Use conda to install.
Pytest to run the test suite.
OpenMP for parallel processing support.
All required packages are listed in requirements.txt in the root directory of the git repository, and can be installed with the following command:
git clone https://github.com/pulse2percept/pulse2percept.git
cd pulse2percept
pip3 install -r requirements.txt
All packages required for development (including all optional packages) are listed in requirements-dev.txt and can be installed via:
pip3 install -r requirements-dev.txt
Where to go from here
Have a look at some code examples from our Example Gallery.
Familiarize yourself with visual implants, electrical stimuli, and our computational models.
Check the FAQ to see if your question has already been answered.
Request features or report bugs in our Issue Tracker on GitHub.
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 pulse2percept-0.7.1.tar.gz
.
File metadata
- Download URL: pulse2percept-0.7.1.tar.gz
- Upload date:
- Size: 7.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b01b2c8dd60abffe3a73060228aa2cac7fcf6a392511767fe4c682a6bee3e3ad |
|
MD5 | ce708db4fd92c0ca16c2a1aa07a587ae |
|
BLAKE2b-256 | e7cf4f69ec2256310583feba2aef46001297b0eeee3265af37f68597c4f902f9 |
File details
Details for the file pulse2percept-0.7.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 933b02510d5549f9fa79a1256f188b7bcc0f5a42a64df3c6cfae68e71650f6b2 |
|
MD5 | aa8ea2f299ce3e8096496a96fd1b0dbd |
|
BLAKE2b-256 | cf5c0d1a60b3609b83d53cefab6a12863de12c58a5334fbdb328577d86a1c937 |
File details
Details for the file pulse2percept-0.7.1-cp39-cp39-win32.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp39-cp39-win32.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 708abffea38b07510b579a5447eb24b468c7e4483ad0e9d3b095f36d89b0b872 |
|
MD5 | d66882326e2a7083edd4196d831bec25 |
|
BLAKE2b-256 | 9c350e4c1493285c3d28c5b769df6b21ea91099aa626706464905b18597b27c2 |
File details
Details for the file pulse2percept-0.7.1-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0010455bed505d4cbee0f3383afeabdd82cf703388cbc5e0681d77bdf4bc86a |
|
MD5 | 81dad580b2262fec695eb3a5197984b8 |
|
BLAKE2b-256 | 7a01a870a7b40eba3016704d3143825de593773f36da611cd340e4d8ff0f6429 |
File details
Details for the file pulse2percept-0.7.1-cp39-cp39-manylinux2010_i686.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp39-cp39-manylinux2010_i686.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02dddd8ea7285f96ba4deb3451c7c284d3bf410d3370df6a30ae651bebbcccb4 |
|
MD5 | 8f5e28cb33c4b10ea051f9e16cf020de |
|
BLAKE2b-256 | 918a4dad4a6bdd60aa69dbe7600dfad69a52defa5488edc66c4285df6bf7eba3 |
File details
Details for the file pulse2percept-0.7.1-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4278e8ea2362b112a60e5de780cc4f5c23fa4270e753e1136701a4954886d323 |
|
MD5 | 1f77e5b45f9359bd80261653df546d11 |
|
BLAKE2b-256 | e612589ac73f9546eba26530b554064bf1cf961bdea5c8ef015ee84b392f57d9 |
File details
Details for the file pulse2percept-0.7.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e1aa2be85e0b712dacbedda6aba98d533edaab23b7beb004fb3aea996e4dacf |
|
MD5 | 071e8739358475b91a6090d9640d2677 |
|
BLAKE2b-256 | c0b80e26f1f51beb2c4965110d6a6d21628afa8dacc7dbd56a3b6f39ffac57be |
File details
Details for the file pulse2percept-0.7.1-cp38-cp38-win32.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp38-cp38-win32.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca109f39bae5196a31f4f154864e6821f516589e4e0a33c86194753384a12d37 |
|
MD5 | 5280b5ab1ac87445d66e073be73b9307 |
|
BLAKE2b-256 | 1707314475765c557f414f55e5f24ffcd62125ee56b2aaf09415b8994f61fa63 |
File details
Details for the file pulse2percept-0.7.1-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.9 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8318a21fd5c6d6d284a52db6ede251329fe8d6aa30bf7719e848662cb9617c7d |
|
MD5 | ae0d596d70108159c0b37d366876f46c |
|
BLAKE2b-256 | e39f8a969f0c28ef101df5348ce1934d4b94d2d22ac13fb40f772dd8fcaebd3d |
File details
Details for the file pulse2percept-0.7.1-cp38-cp38-manylinux2010_i686.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp38-cp38-manylinux2010_i686.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b531798e957dcf61d730017e238276db85205b0e8c6740a16b232afcd05d43 |
|
MD5 | c02c8af54a044e4a565bdfc8a44f5ae6 |
|
BLAKE2b-256 | bfd1d053b279e6feae8b7f3e8d90cbd273172e5bbcd57e5fcb9d100c4347a279 |
File details
Details for the file pulse2percept-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 453294246e3964662b06f00c7e12ac72b2bb87b6013bdb64d61af4dc47299d8b |
|
MD5 | baa61203ff6f7f8941d262762330d89a |
|
BLAKE2b-256 | d017478facd83f20ffcb9a2dd793899d59727b91d33437efaaa6def941174422 |
File details
Details for the file pulse2percept-0.7.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8278e7bff6a0dcf99fe802d83ed175b9c005a660062a75e3f7f3460606e128 |
|
MD5 | 7f0bfa12f7fd92cbe0689268a79902e5 |
|
BLAKE2b-256 | 00f9fa364a12b16cd254d3b391ba70453d049556f6ee26a18b613be9f846aa09 |
File details
Details for the file pulse2percept-0.7.1-cp37-cp37m-win32.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp37-cp37m-win32.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1989c0fb48578db588436aa1cbda5e37b421ca11e329c8da8c48e336e3dad7 |
|
MD5 | 587693ff7b9b745d25314cc23647cf9f |
|
BLAKE2b-256 | 7102cd4604bc50db38524650c8d1de55e47ed0bbf965708f583a9f8aa16eec23 |
File details
Details for the file pulse2percept-0.7.1-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10207c586bb06e4684d9bec7ce0477e0fe5e629ada1ccfebc41182621c07aa39 |
|
MD5 | f14bb40261d9a736c0ad93412590dea8 |
|
BLAKE2b-256 | dfd7b4891c0b5f14711b55a8786e198f018f05b1950224ad0aed64e2ac4c82a1 |
File details
Details for the file pulse2percept-0.7.1-cp37-cp37m-manylinux2010_i686.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp37-cp37m-manylinux2010_i686.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b86d39d1d67fcbc8486ed3c1c604be715fd3617cb746f2be64eb612d2a9dc1f |
|
MD5 | 7d1f3aee5306062e4d641aea8d8b2094 |
|
BLAKE2b-256 | d9314b718a2a04d8f2886557c1fd2378566a58ca48918983d99cfe9baf94b979 |
File details
Details for the file pulse2percept-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f7a412b7766a28b00ff1444ff35096c0c4a254dddcd613da2b66f8c6a1400c |
|
MD5 | f1c8f7f9590334599fa03c6bbdba58c0 |
|
BLAKE2b-256 | dc6348cbaf0df56f9a205c802f0638c4fe1a85b4255f499466b226e27148bbeb |
File details
Details for the file pulse2percept-0.7.1-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp36-cp36m-win_amd64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.6m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01589ff07859de4286ad2d8ecac89938153375465d0da12049b0cde6db643f71 |
|
MD5 | 481d417d89d535d1b5b7b50fe67c4450 |
|
BLAKE2b-256 | 756d3e7ba29dd978b0c81a3934b9d88fe67e0709dcd1ff684c738ea151f3b2ca |
File details
Details for the file pulse2percept-0.7.1-cp36-cp36m-win32.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp36-cp36m-win32.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.6m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa1771970318fc32d0226361cf667743c2d87617107606e1844745db2da830f |
|
MD5 | d8dd4abc24fa733a47bdfde79222dd04 |
|
BLAKE2b-256 | 8db9f3fb1f9a4c3bb9b515df08571c31e1886314882e1f548e07b557b47f457c |
File details
Details for the file pulse2percept-0.7.1-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 3.6 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4e1685dd20de16ae83933ec440d2eaa82315aca6e7f12c7f8ae146add71044 |
|
MD5 | 555edf9a4d9c74c8a4c2563be2545c3c |
|
BLAKE2b-256 | a02fcd2074879379d0f8697a7aa81d086bc9060fda1d3dc575977cb733302001 |
File details
Details for the file pulse2percept-0.7.1-cp36-cp36m-manylinux2010_i686.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp36-cp36m-manylinux2010_i686.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e5ff8073840022dd554cadda6a6f33ce2319b37e912a43a4d71c22be3a9a919 |
|
MD5 | 530e842032e00ff5e82f154c6ea8a83f |
|
BLAKE2b-256 | 3276f4b2ae3ad289b818e1fab89570df2f376a29e5d1f3cf5676c02449f5502d |
File details
Details for the file pulse2percept-0.7.1-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: pulse2percept-0.7.1-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b34dd6045c7b284f0701e4174c49a07d81955c27f78746dd5e17dfb91aa25b3 |
|
MD5 | 82e86496b4e24f50ac7609bff0c98d43 |
|
BLAKE2b-256 | 1fdaab0559d6c516249ec5eba49e1acda408c2843cc1f259190dc109f1890b39 |