Access Stimulus Data for Visual Coding Experiments

Hi Max! Once you’ve set up a cache object, you can get the movie stimulus frames as follows:

movie = cache.get_natural_movie_template(1) # 1 or 3

For the natural scenes, it’s similar:

scene = cache.get_natural_scene_template(0) # 0 - 117

It’s true that these functions are not obvious from the documentation – we’ll work on getting that fixed.

To generate the other stimuli, we either used PsychoPy’s GratingStim or DotStim classes.

1 Like