Dropped final character in saved filename with mic.record #875
filename = '../data/20150312094043_voice_ID1000_S001_T001_R001_pataka'
However, by adding an intermediate character in the concatenation, all characters are used.
mic.record(sec=20, block=False, filename = filename + '123456' + '.wav')
This could be my misunderstanding of how python concatenate works somehow.
This error does not happen with a shorter filename e.g. filename = '../data/mySubject1234' writes out as mySubject1234.wav
Using Psychop v1.81.03 on mac 10.8.2
The text was updated successfully, but these errors were encountered:
This is a bug, will fix. The issue is not the length of the filename, but the fact that it ends with an 'a'. The bug is that if a filename is given to .record(), any trailing '.wav' is supposed to be removed, but that is done incorrectly and removes any of the characters w, a, v, or .
Possible work arounds: