Adapting the experimental paradigm from Gershman (2017) into a within-subject behavioral pilot for an fMRI study. Written in psychopy
This is included just for reference. A better version of the code was used in the actual fMRI task. The main difference is here we tried to make psychopy randomize the stimuli on the fly. Big mistake.