Skip to content

Maintaining a shuffled order of choices across two trials in a nested timeline #1398

Answered by jodeleeuw
rachelkytsui asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rachelkytsui,

I'm having a hard time coming up with a super-elegant way to do this, but I think that taking advantage of the on_start parameter like you did for Step1 makes sense. In Step2, you could do this:

on_start: function(trial){
	trial.choices = jsPsych.data.get().last(1).values()[0].button_choices;
}

This works because you've saved shuffled_label_choices to the data object for the Step1 trial.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rachelkytsui
Comment options

You must be logged in to vote
0 replies
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