CML Seminar, 2018

Hi everyone! This is the ultra-condensed highlights from my three-day PsychoPy course. You can see the full one here. Here are some materials for the workshop. As a preparation for the whole course:

  • Make sure to take a look at the “Getting Started” page in the “PsychoPy Course” menu above. I have been using PsychoPy 3.0.11b and Spyder4 (beta) on my computer.
  • I may be using the ppc module which I wrote some years ago. It’s useful helpers to complement psychopy. Right click to download.
  • In general, skim over the The PsychoPy API to get a sense of where you can turn to to get more information and help. It documents almost all the methods and classes available to you.

First webinar: stimuli and precision

Here are some useful things to look into for the first webinar:

  • Slides from the first seminar.
  • For this session, we’ll use just two images: a smooth and a pointy one. Right-click these links to download them. They are white images, so don’t worry if you can’t see them on a white background! If you’re interested, here are a larger stimulus set, controlled for area, width, and height: 

    Download (PDF, Unknown)

 

Here’s the code from the first seminar:

 

Second webinar: Experiment flow #1

If you have a bit of time to review some materials before the seminar, here are two suggestions:

This is the code we wrote in the second webinar. Notice that it follows the code layout above.

 

Third webinar: Experiment flow #2

We will continue (and hopefully finish!) coding our experiment by adding:

  • Collect response and score it
  • Save data. Also take a look at the psychopy.data module.
  • Dialogue box.
  • Fancy code-only stuff: non-random order. Breaks in certain conditions, etc.
  • Interface with external hardware – sending/receiving triggers.

As mentioned in the intro to the previous webinar, it’s very helpful to look at the worked code examples for all PsychoPy functionality under PsychoPy Coder –> demos.

We updated the code during the webinar and here it is:

[/crayon]