Skip to content

Code for regenerating the random-number-based contrast values used for white-noise stimulation in the Gollisch Lab. Used for both temporal and spatiotemporal stimuli.

License

Notifications You must be signed in to change notification settings

gollischlab/RecreateWhiteNoiseStimuliWithPython

Repository files navigation

RecreateWhiteNoiseStimuliWithPython

Build status PyPI version

Code for regenerating the random-number-based contrast values applied in experiments with white-noise stimulation in the Gollisch Lab. Used for both temporal and spatiotemporal stimuli, and for both binary and Gaussian white noise.

The random-number sequences are needed for analyzing the spike responses of recorded cells under white-noise stimulation.

Installation

A full installation of the package is done from command-line using pip with

pip install retinawhitenoise

Manual installation

If the pip package is not available for a given operating system or Python version, the package and Cython code can be compiled manually instead.

pip install https://github.com/gollischlab/RecreateWhiteNoiseStimuliWithPython/archive/main.tar.gz

Windows might require the Microsoft C++ Build Tools to be installed (including "Windows SDK" and "MSVC ... C++ x64/x86 build tools"). For details, see here.

Usage

The Python package retinawhitenoise offers two modules binarystimulus and gaussianstimulus, each offering routines to recreate, save (to disk), and load stimulus sequences.

Instructions on how to use them with example code and explanations is included in the jupyter notebook examples.ipynb.

About

Code for regenerating the random-number-based contrast values used for white-noise stimulation in the Gollisch Lab. Used for both temporal and spatiotemporal stimuli.

Topics

Resources

License

Stars

Watchers

Forks