OS: OSX
PsychoPy version: 1.84.4
Standard Standalone? (y/n) : y
What are you trying to achieve?:
I noticed that my experiment was no longer saving data in .csv or .xlsx format, but only in .psydat and .log format. I’m trying to make PsychoPy save things in .csv and .xlsx again.
What did you try to make it work?:
I’m new to PsychoPy. I tried going back to the basic Stroop task (https://www.youtube.com/watch?v=VV6qhuQgsiI), something that’s saved data as csv. in the past for me, and even then, csv. and xlsx. files were no longer being saved, although I haven’t touched the code for that; I’d only made that in builder view. I thought it might be an issue with the program instead, so I tried reinstalling PsychoPy standalone, and it didn’t work.
I checked my data settings under experiment settings (Experiment settings — PsychoPy v2023.2.3), and they appear as in the screenshot below.
What specifically went wrong when you tried that?:
There was no error message. Things just aren’t saving…
I went to coder view to see what the code looks like for saving data. I think this is the relevant part, but I’m not sure if anything is wrong with it.
save data for this loop
trials.saveAsExcel(filename + ‘.xlsx’, sheetName=‘trials’,
stimOut=params,
dataOut=[‘n’,‘all_mean’,‘all_std’, ‘all_raw’])
trials.saveAsText(filename + ‘trials.csv’, delim=‘,’,
stimOut=params,
dataOut=[‘n’,‘all_mean’,‘all_std’, ‘all_raw’])these shouldn’t be strictly necessary (should auto-save)
thisExp.saveAsWideText(filename+‘.csv’)
thisExp.saveAsPickle(filename)
logging.flush()make sure everything is closed down
thisExp.abort() # or data files will save again on exit
win.close()
core.quit()