Skip to content

Commit

Permalink
Debugging array length for progress bar update
Browse files Browse the repository at this point in the history
  • Loading branch information
Anjali Ragupathi authored and Anjali Ragupathi committed Mar 2, 2024
1 parent 9382939 commit efaa160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions experiments/01_idiom_comprehension/js/experiment.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ let timeline = [];
const NUM_IDIOMS_PER_SAMPLE_LANGUAGE = 4; // 4 idioms per language, 16 per participant. Ideally 100 participants to get 20 judgments.
let temp_array = [create_tv_array(russian_idioms_sampled, NUM_IDIOMS_PER_SAMPLE_LANGUAGE), create_tv_array(mandarin_idioms_sampled, NUM_IDIOMS_PER_SAMPLE_LANGUAGE), create_tv_array(hindi_idioms_sampled, NUM_IDIOMS_PER_SAMPLE_LANGUAGE), create_tv_array(spanish_idioms_sampled, NUM_IDIOMS_PER_SAMPLE_LANGUAGE)];
let tv_array = jsPsych.randomization.shuffle([].concat(temp_array[0], temp_array[1], temp_array[2], temp_array[3]));
console.log(tv_array.length);


const irb = {
Expand Down

0 comments on commit efaa160

Please sign in to comment.