If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win11):
PsychoPy version (e.g. 1.84.x): 2022.2.2
Standard Standalone? (y/n) y
What are you trying to achieve?:
I am attempting to output a file after a loop has run which has a readable conditions file format using either the MultiStairHandler or ExperimentHandler so that it be used as a conditions file in a successive loop.
What did you try to make it work?:
I can successfully output files as xlsx, or txt
What specifically went wrong when you tried that?:
When i export the xlsx file there are space-separated headers. Upon attempting to read this file as a conditions file i get the following error:
Parameters (column headers) cannot contain punctuation or spaces
When i export using ExperimentHandler, i get the following error:
UnboundLocalError: local variable 'trialList' referenced before assignment
This may be an issue with the encoding: Unix (LF). Whereas, excel files typically use Macintosh (CR), i believe.
I have also tried to just point to the output file for the loop using conditions =