Skip to content

Commit

Permalink
chore: TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertGemmaJr committed Dec 6, 2023
1 parent 73c6178 commit 9b60a97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/timelines/honeycombBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function createHoneycombBlock(jsPsych) {
duration: fixationSettings.randomize_duration
? jsPsych.randomization.sampleWithoutReplacement(fixationSettings.durations, 1)[0]
: fixationSettings.default_duration,
// TODO 280: Fixation will be recorded as "task: fixation" (data object, see below)
});

/**
Expand All @@ -28,6 +29,7 @@ function createHoneycombBlock(jsPsych) {
* Note that the correct_response is saved as a data point
* Note that the trial calculates and saves if the user responded correctly on trial_finish
*/
// TODO: Add photodiodeGhostBox and pdSpotEncode to this trial
const taskTrial = {
type: imageKeyboardResponse,
// Display a stimulus passed as a timeline variable
Expand All @@ -36,7 +38,7 @@ function createHoneycombBlock(jsPsych) {
choices: honeycombSettings.timeline_variables.map((variable) => variable.correct_response),
data: {
// Record the correct_response passed as a timeline variable
task: "response", // TODO 280: Fixation will be recorded as "task: fixation"
task: "response",
correct_response: jsPsych.timelineVariable("correct_response"),
},
// Add a boolean value ("correct") to the data - if the user responded with the correct key or not
Expand Down

0 comments on commit 9b60a97

Please sign in to comment.