URL of experiment: nbackexp [PsychoPy]
Script: Yang-Ming Huang / nback demo · GitLab
Description of the problem:
The script ran without error on my local end. However, when it’s uploaded to Pavlovia, several things went wrong:
- thisExp.addData (‘newans’, ans) doesn’t save anything…
- the condition completely went off…
Begin routine Settings
numlist = ['1','2','3','4','5','6','7','8','9']
shuffle(numlist)
number = numlist.pop()
count = count + 1
if count > 2:
if ans == 's':
number = tempnumber[0]
tempnumber.pop(0)
if ans == 'd':
if number == tempnumber[0]:
ans ='s'
tempnumber.pop(0)
end Routine
tempnumber.append(number)
thisExp.addData ('newans', ans)
thisExp.addData ('newnumber', number)
Originally, I used tempnumber.insert(0,number). It ran smoothly on my local computer but Pavlovia complained that insert is not a proper function… So I made the changes… but again things doesn’t seem to be right on Pavlovia’s end thought it was running.