Skip to content
Burak G edited this page Jan 24, 2024 · 10 revisions

PyStim Wiki

Welcome to PyStim - Python-based stimulus generation and presentation platform currently used for 2-photon experiments in the Marion Silies lab developed by Burak Gür.

Installation

  1. Download and unzip the code. (alternatively fork it in your repo)
  2. Using Conda, make an environment and install the required packages. Follow the instructions here. If you're not familiar with conda, read the related wiki page first.

How to use it?

Now you're ready to use PyStim. Follow the instructions in Run a PyStim experiment wiki page.

Detailed information and functions used

Create and read stimulus and monitor information and generate routine and epochs

Functions for stimuli are located in PyStim/helper.py. Functions depicting the monitor settings and calculating further parameters are in PyStim/psyTools.py.

Present the stimulus

Communication with the imaging computer during the experiment.

Functions for initializing stimuli are located in PyStim/helper.py. Functions for running the stimuli are in PyStim/psyTools.py. Functions for communicating through the NiDAQ with the imaging computer are in PyStim/nidaqTools.py.

Save stimulus output files.

Functions for creating and saving the output files are in PyStim/helper.py. Functions for updating the output files are in PyStim/psyTools.py.

Clone this wiki locally