API Reference
pulse2percept is organized into the following subpackages:
Visual prostheses, e.g. Argus II, Alpha-IMS, PRIMA, NeuroPortArray. |
|
Visual and electrical stimuli. |
|
Computational models of prosthetic vision |
|
Visual percepts and phosphenes. |
|
Utilities to download and import datasets. |
|
Figures and animations that combine multiple pulse2percept objects. |
|
Various utility and helper functions. |
|
Visual field maps, retinotopy, and visuotopy |
|
Physical units used by pulse2percept. |
|
Visual scenes, residual vision, and binocular views. |
- pulse2percept.set_debug_logging(fname='debug.log', level=10, filemode='w')[source]
Write pulse2percept’s log messages to a file
Importing pulse2percept does not configure logging: which messages are emitted, and where they go, is the application’s decision. Call this to opt in to a file-based log of pulse2percept’s own messages.
Note that this configures the
pulse2perceptlogger only, not the root logger, so it will not capture messages from other libraries.- Parameters:
- Returns:
handler – The handler that was installed. Pass it to
logging.getLogger('pulse2percept').removeHandlerto undo.- Return type:
Examples
>>> import pulse2percept as p2p >>> handler = p2p.set_debug_logging()