API Reference
pulse2percept is organized into the following subpackages:
Different prosthetic implants, such as Argus II, Alpha-IMS, BVT-24, PRIMA, Cortivis, etc. |
|
Common electrical stimuli, such as charge-balanced square-wave pulse trains. |
|
Computational models of the prosthetic vision, such as phosphene and neural response models. |
|
Visual percepts and phosphenes. |
|
Utilities to download and import datasets. |
|
Various visualization functions. |
|
Various utility and helper functions. |
|
Visual field maps, retinotopy, and visuotopy |
- 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()