The TrialHandler has an optional seed parameter:
<http://www.psychopy.org/api/data.html#psychopy.data.TrialHandler>
By specifying a constant seed value, the random order chosen will be the same from one run to the next. So start by selecting a new random seed for each run of the experiment (so each subject gets a different random order):
fixedSeed = random.randint(0, 1000000) # a random integer between 0 and a million
Then for the first run of the pictures, do:
firstTrials = data.TrialHandler(nReps=1, method=u'random',
extraInfo=expInfo, originPath=None,
trialList=data.importConditions(u'Mugshot names file.csv'),
seed=fixedSeed)
And then use exactly the same for the second run:
secondTrials = data.TrialHandler(nReps=1, method=u'random',
extraInfo=expInfo, originPath=None,
trialList=data.importConditions(u'Mugshot names file.csv'),
seed=fixedSeed)
The order should then be the same from one repetition to the next within a session, but vary across subjects (but test this…)
Regards,
Michael
--
Michael R. MacAskill, PhD michael....@nzbri.org
Research Director,
New Zealand Brain Research Institute
66 Stewart St http://www.nzbri.org/macaskill
Christchurch 8011 Ph: +64 3 3786 072
NEW ZEALAND Fax: +64 3 3786 080
--
Michael R. MacAskill, PhD michael.maca...@nzbri.org
Research Director,
New Zealand Brain Research Institute
Success!
I have another question, and hopefully it's my last for this project. I'll be displaying a mugshot and I want the subjects to answer whether the person was or was not the culprit from a video, and I also want them to indicate their confidence in that decision. My issue is that I'm trying to make the first prompt disappear after an answer is given by using the disappear=True command, but I keep getting this error:TypeError: __init__() got an unexpected keyword argument 'disappear'
The other issue is that I want the confidence scale to appear only after the Yes/No prompt has been answered, but I'm not sure how to make that the start condition.