I collected data a while ago, and I would need to retrieve the exact psychopy and python version that was used. The computer that was used has likely been updated in the meantime, so I cannot rely on the current versions installed there.
Is there a way to retrieve such info from the psydat file? If so, how can this be done?
Hi @Silvia, if the PsychoPy version was saved in the datafile, then you should be able to get this from the psydat file. Try the following from the Coder window (see online docs):
from psychopy.misc import fromFile
datFile = fromFile('data/_colPal.psydat')
# get info (added when the handler was created)
print(datFile.extraInfo)
for entry in datFile.getAllEntries():
for key,value in entry.items():
print(key,value)