This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get subject information | |
expInfo = {u'session': u'001', u'subject': u''} | |
dlg = gui.DlgFromDict(dictionary=expInfo, title='Sweep Acuity') | |
if dlg.OK == False: | |
core.quit() # user pressed cancel | |
expInfo['date'] = data.getDateStr() # add a simple timestamp | |
# Setup files for saving | |
if not os.path.isdir('data'): | |
os.makedirs('data') # if this fails (e.g. permissions) we will get error |
NewerOlder