jamesbutler01 / Mymou

Mymou: A standalone touchscreen in-cage testing device
16 stars 11 forks source link

Spatial Location Task: new preference and onClick bug fix #15

Closed iandol closed 4 years ago

iandol commented 4 years ago

Hi James,

We were testing the spatial location task. First we noticed a bug whereby clicking the stimulus cues would reward/timeout the monkey. Second, for training we wanted to reduce the number of stimuli to start with, giving an option of 2 / 4 / 8 potential cues to remember. I managed to add a preference to control this. One small annoyance is I don't know how to limit the Seekbar to fixed values (2/4/8), at the moment you can set 3/5/6/7 etc. and it is ignored by the task and 8 is run (default).

iandol commented 4 years ago

In 37b7129 -- actually it is better if the stimulus cues can be clicked, then we can fail the trial deliberately: added a check for which phase onClick occurs -- this stops the subject from bashing the cues repeatedly before the response phase, encouraging proper task contingency learning.

jamesbutler01 commented 4 years ago

See bd434913899e00d37a538783e8c0b2486da06da9 Using a ListPreference allows you to easily specify options to give the user. You could hack around by converting SeekBar values from 0 1 2 to 2/4/8 but not worth the effort in my opinion.