Selecting DataColumns to be stored by Cognition.run #1104
-
I'm using cognition.run to host my jsPsych experiment which automatically saves the data at end of each run. The problem is that it saves all the experiment-related information by default (including many columns not relevant for my data analysis). Is it possible to select data columns I want it to save? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not sure how cognition.run automates the data collection process. In a normal jsPsych experiment you could filter out irrelevant columns with .ignore() before sending the data to the server, but I think cognition.run injects some code to handle this for you. I'm not sure how to intercept that data before it is saved. Maybe @javidalpe can chime in? |
Beta Was this translation helpful? Give feedback.
-
Hello @mingjia1025. And thanks @jodeleeuw for the mention. I don't think you can do it on cognition.run, sorry. Is there any legal/technical problem about storing all data? FYI The app just calls jsPsych.data.get().csv() during the on_finish event and sends the data to the server, hehe. I could add some kind of callback system for selecting the data before uploading it, but I refuse to add cognition-specific code to the platform. New specific code would require new mental models to understand what is jspysch code and what is cognition code, new documentation, new forums to report specific code problems. |
Beta Was this translation helpful? Give feedback.
Hello @mingjia1025. And thanks @jodeleeuw for the mention.
I don't think you can do it on cognition.run, sorry. Is there any legal/technical problem about storing all data?
FYI
The app just calls jsPsych.data.get().csv() during the on_finish event and sends the data to the server, hehe.
I could add some kind of callback system for selecting the data before uploading it, but I refuse to add cognition-specific code to the platform. New specific code would require new mental models to understand what is jspysch code and what is cognition code, new documentation, new forums to report specific code problems.