Hello all
I’m having difficulty saving time with my experiment coded in Python and using Psychopy.
I created a clock:
self.imagetimer = core.Clock()
Each time a new image is presented I get the time
self.whattime = self.imagetimer.getTime()
print(self.whattime)
I can see it on the runner; but I’m failing saving it as a csv:
np.savetxt(self.timename + ‘.csv’, np.c_[self. whattime], fmt=‘%f’, delimiter=“,”)
It create the file, but only contains the last value.
I tried adding an append
but then it gets stuck
Do you know what I’m missing?
Thanks!