Hi,
I am trying to define the logging values. I want the user to enter with a name, before the experiment starts, but I’m getting an EOFError. What should I change in this code?
This is the first part of the code, just after the “imports”.
Thanks in advance
# Ask for the log file's name
LOGFILENAME = input ("Participant name:")
LOGFILE = LOGFILENAME
#Open a new file instance
log = open (LOGFILE + ".tsv", "w")
#Define a header
header = ["fixonset", "cueonset", "cueoffset", "taronset", "cueside", "tarside", "valid", "soa", "target", \
"response", "correct", "RT"]
#Transform header into strings and add line
line = map(str, header)
line = "\t".join (line)
line += "\n"
#Write the header to the log filename
log.write(line)