Skip to content
Discussion options

You must be logged in to vote

@ChristopheBossens Thanks for this. Yes, it seems that it is saving data trial by trial, which would account for the data not being written using the experiment level on_finish parameter. Experimenting a bit, it seems that if I simply add my function to the on_finish parameter of the demographic trial itself, it correctly adds the date to each subsequent trial. The key phrase in the documentation of jsPsych.data.addProperties (which I hadn't noticed before) is (emphasis mine):

This method appends a set of properties to every trial in the data object, including trials that have already occurred and trials that have yet to occur.

This means that my demographic trial can simply be:

var dem…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amunn
Comment options

Answer selected by amunn
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