Skip to content
Discussion options

You must be logged in to vote

Hi @chester108, I'm not sure based on the code you provided, but I think the last two lines are supposed to be inside of the stimulus function - is that right? If so, then I don't think those lines will be called because you're returning from the function before that point in the code.
Also, you don't have access to the data object from inside the stimulus function, so you can't update the data in a stimulus function in the way that you can from inside a trial's on_finish function.
I'm not sure if this would work, but you could try moving the code from your stimulus function into the trial's on_start parameter. This function will run before the trial starts and has access to the trial par…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@becky-gilbert
Comment options

@chester108
Comment options

@chester108
Comment options

@becky-gilbert
Comment options

@chester108
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants