NF: Adding field seperator selection in output#566
NF: Adding field seperator selection in output#566EitanHemed wants to merge 8 commits intopsychopy:mainfrom
Conversation
Adding to ExperimentHandler a field separator property, which allows output to include field separators other than comma (e.g., TSV format).
Fixed type in this._field_separator
Passing parameters correctly to .sheet_to_csv
TEParsons
left a comment
There was a problem hiding this comment.
Broadly I like your thinking, but I think it's better for cross-language parity if the delim is an input when creating the experiment handler rather than being in expInfo. Being in expInfo means that it will appear in the data file and (if we don't otherwise handle it) the participant info dialog.
What if instead of looking for field_separator in extraInfo, ExperimentHandler simply had an attribute .field_separator (like what you extract to here) which defaults to "," if not otherwise set? Then in the compiled code from the app we can do psychoJS.experiment.field_separator = %(Data file delimiter)s
|
Thanks for the feedback @TEParsons, i think the current changes should do it and not putting it in expInfo is more elegant. |
Following this feature request, this pull request will allow passing the data delimiter selected on PsychoPy, when converting the experiment to PsychoJS.
Note that the changes are not implemented yet on the PsychoPy end, and
psychoJS.ExperimentHandler._field_separatoris an undefined property. Thus the expected behavior is that the default (',') field separator will be selected.