You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psychop...@googlegroups.com
Hi,
I want to store a variable that keeps track of the total number of correct responses in a trial handler.
This means I don't need to have multiple entries for this variable (i.e. one for each trial), but only one, kind of like the extraInfo dict.
At the moment I have
trials.data.add('TotalCorr',totalcorr)
AFTER the trial handler loop.
Nonetheless, the datafile creates an array with all entries bar the last one being empty. The last one has the right value.
because my experiment has a variable number of trials depending on the participants performance (i.e. there is a time-out), this makes the analysis more messy than I want it to be
Is there a way to store a single variable with a trial handler?
Apologies if this is really obvious, but I couldn't find anything in the documentation or other posts.
Marc
Jonathan Peirce
unread,
Apr 23, 2013, 5:17:03 AM4/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to psychop...@googlegroups.com
I'm confused. You said you wanted to store a single number, and that
you've achieved that (the last row has the value, and it's the correct
one). I haven't understood what you want to change. You mention the
extraInfo dict and you know you /could/ store your single value in there
if you like, right? Before you save the data just do
info['totalCorr']=totalCorr