Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getLastTrialDataUtility function from GearShift #499

Closed
RobertGemmaJr opened this issue Jun 26, 2024 · 0 comments · Fixed by #506
Closed

Add getLastTrialDataUtility function from GearShift #499

RobertGemmaJr opened this issue Jun 26, 2024 · 0 comments · Fixed by #506
Assignees
Labels
3.4 Versioning: Issue in regards to version 3.4 release good first issue Good for newcomers

Comments

@RobertGemmaJr
Copy link
Member

/**
 * Retrieves the data object from the last trial in JsPsych
 * @param {JsPsych} jsPsych jsPsych instance being used to run the task
 * @returns {Object}
 */
export function getLastTrialData(jsPsych) {
  const dataCollection = jsPsych.data.getLastTrialData();
  return dataCollection.trials[0];
}
@RobertGemmaJr RobertGemmaJr added good first issue Good for newcomers 3.4 Versioning: Issue in regards to version 3.4 release labels Jun 26, 2024
@YUUU23 YUUU23 self-assigned this Jul 6, 2024
@YUUU23 YUUU23 linked a pull request Jul 6, 2024 that will close this issue
@YUUU23 YUUU23 closed this as completed Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.4 Versioning: Issue in regards to version 3.4 release good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants