I have an experiment that creates a csv file with data but there are 4 different runs. Before each run the participant number and run number is entered into the gui. Is there a way to get Psychopy to add onto the .csv file for each run rather than create a brand new one?
The verb typically used for the operation you are describing in the world of programming is “append”. Assuming you are using the data handler and writing csv files with the saveAsWideText() function, there is a parameter appendFile that can be set to True. I have not tested it, but I imagine that is what you are looking for.
psychopy.data - functions for storing/saving/analysing data — PsychoPy v2025.2.1
Hi there!
I would have a look at this: Blocks of trials and counterbalancing — PsychoPy v2025.2.1. There is no reason for you to enter in the runs manually. You can run them all in the same session and this will create one csv file with all the runs together.