Skip to content

Commit 7e84a42

Browse files
authored
Merge pull request #577 from jkl071/master
predictable_task_switching_with_cued_task_switching - freezing b/c of…
2 parents ab616e4 + e400ccd commit 7e84a42

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

predictable_task_switching_with_cued_task_switching/experiment.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ var createTrialTypes = function(numTrialsPerBlock){
358358
}
359359

360360
stim = {
361-
whichQuadrant: whichQuadrant,
361+
whichQuadrant: quadIndex,
362362
predictive_condition: predictive_condition,
363363
predictive_dimension: predictive_dimension,
364364
cued_condition: cued_condition,
@@ -397,7 +397,7 @@ var appendData = function(){
397397
}
398398

399399
jsPsych.data.addDataToLastTrial({
400-
whichQuadrant: quadIndex,
400+
whichQuadrant: whichQuadrant,
401401
predictive_condition: predictive_condition,
402402
predictive_dimension: predictive_dimension,
403403
task_condition: cued_condition,
@@ -537,7 +537,7 @@ var attention_check_block = {
537537
data: {
538538
trial_id: "attention_check"
539539
},
540-
timing_response: 180000,
540+
timing_response: 180000,
541541
response_ends_trial: true,
542542
timing_post_trial: 200
543543
}
@@ -559,7 +559,7 @@ var post_task_block = {
559559
questions: ['<p class = center-block-text style = "font-size: 20px">Please summarize what you were asked to do in this task.</p>',
560560
'<p class = center-block-text style = "font-size: 20px">Do you have any comments about this task?</p>'],
561561
rows: [15, 15],
562-
timing_response: 360000,
562+
timing_response: 360000,
563563
columns: [60,60]
564564
};
565565

@@ -568,7 +568,7 @@ var end_block = {
568568
data: {
569569
trial_id: "end",
570570
},
571-
timing_response: 180000,
571+
timing_response: 180000,
572572
text: '<div class = centerbox><p class = center-block-text>Thanks for completing this task!</p><p class = center-block-text>Press <i>enter</i> to continue.</p></div>',
573573
cont_key: [13],
574574
timing_post_trial: 0,
@@ -589,7 +589,7 @@ var feedback_instruct_block = {
589589
cont_key: [13],
590590
text: getInstructFeedback,
591591
timing_post_trial: 0,
592-
timing_response: 180000
592+
timing_response: 180000
593593
};
594594

595595
/// This ensures that the subject does not read through the instructions too quickly. If they do it too quickly, then we will go over the loop again.
@@ -663,7 +663,7 @@ var start_test_block = {
663663
data: {
664664
trial_id: "instruction"
665665
},
666-
timing_response: 180000,
666+
timing_response: 180000,
667667
text: '<div class = centerbox>'+
668668
'<p class = block-text>We will now start the test portion</p>'+
669669

@@ -698,7 +698,7 @@ var fixation_block = {
698698
data: {
699699
trial_id: "practice_fixation"
700700
},
701-
timing_response: 500, //500
701+
timing_response: 500, //500
702702
timing_post_trial: 0,
703703
}
704704

@@ -716,7 +716,7 @@ var feedback_block = {
716716
stimulus: getFeedback,
717717
timing_post_trial: 0,
718718
is_html: true,
719-
timing_response: 180000,
719+
timing_response: 180000,
720720
response_ends_trial: true,
721721

722722
};
@@ -739,7 +739,7 @@ for (i = 0; i < practice_len + 1; i++) {
739739
},
740740
timing_post_trial: 0,
741741
timing_stim: 500, //500
742-
timing_response: 500, //500
742+
timing_response: 500, //500
743743
prompt: prompt_text
744744
}
745745

@@ -752,7 +752,7 @@ for (i = 0; i < practice_len + 1; i++) {
752752
},
753753
choices: 'none',
754754
timing_stim: getCTI, //getCTI
755-
timing_response: getCTI, //getCTI
755+
timing_response: getCTI, //getCTI
756756
timing_post_trial: 0,
757757
response_ends_trial: false,
758758
prompt: prompt_text
@@ -771,7 +771,7 @@ for (i = 0; i < practice_len + 1; i++) {
771771
incorrect_text: '<div class = fb_box><div class = center-text><font size = 20>Incorrect</font></div></div>' + prompt_text,
772772
timeout_message: '<div class = fb_box><div class = center-text><font size = 20>Respond Faster!</font></div></div>' + prompt_text,
773773
timing_stim: 1000, //1000
774-
timing_response: 2000, //2000
774+
timing_response: 2000, //2000
775775
timing_feedback_duration: 500,
776776
show_stim_with_feedback: false,
777777
timing_post_trial: 0,
@@ -864,7 +864,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
864864
},
865865
timing_post_trial: 0,
866866
timing_stim: 500, //500
867-
timing_response: 500 //500
867+
timing_response: 500 //500
868868
}
869869

870870
var cue_block = {
@@ -876,7 +876,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
876876
},
877877
choices: 'none',
878878
timing_stim: getCTI, //getCTI
879-
timing_response: getCTI, //getCTI
879+
timing_response: getCTI, //getCTI
880880
timing_post_trial: 0,
881881
response_ends_trial: false,
882882
}
@@ -890,7 +890,7 @@ for (i = 0; i < numTrialsPerBlock + 1; i++) {
890890
},
891891
choices: [possible_responses[0][1],possible_responses[1][1]],
892892
timing_stim: 1000, //1000
893-
timing_response: 2000, //2000
893+
timing_response: 2000, //2000
894894
timing_post_trial: 0,
895895
response_ends_trial: false,
896896
on_finish: appendData

0 commit comments

Comments
 (0)