For some reason, it appears to happen that some trials go missing in action. This then means that some participants have to be excluded from pre-processing even though they completed the experiment. Not good.
So, can we implement these two things:
1: a check at the end of a trial, so that the function for the trial doesn't quit unless it is very certain that the data has been saved (in a while loop, keep checking if the file exists, and save it if not: only exit if it exists?)
2: code in the re-combine button that replaces a missing trial with NAs, or put NAs in the participant's errors/deviations during pre-processing if a trial isn't there (or both?)
For some reason, it appears to happen that some trials go missing in action. This then means that some participants have to be excluded from pre-processing even though they completed the experiment. Not good.
So, can we implement these two things: 1: a check at the end of a trial, so that the function for the trial doesn't quit unless it is very certain that the data has been saved (in a while loop, keep checking if the file exists, and save it if not: only exit if it exists?) 2: code in the re-combine button that replaces a missing trial with NAs, or put NAs in the participant's errors/deviations during pre-processing if a trial isn't there (or both?)