def testEnabledDataStoreAutoSessionCode():
 import time
 from pprint import pprint
 psychopy_mon_name = 'testMonitor'
 exp_code = 'gap_endo_que'
 sess_code = 'S_{0}'.format(long(time.mktime(time.localtime())))
 print('Current Session Code will be: ', sess_code)
 io = launchHubServer(psychopy_monitor_name=psychopy_mon_name, experiment_code=exp_code, session_code=sess_code)
 display = io.devices.display
 print('Display Psychopy Monitor Name: ', display.getPsychopyMonitorName())
 print('Display Default Eye Distance: ', display.getDefaultEyeDistance())
 print('Display Physical Dimensions: ', display.getPhysicalDimensions())
 print('Experiment Metadata: ')
 pprint(io.getExperimentMetaData())
 print('\nSession Metadata: ')
 pprint(io.getSessionMetaData())
 io.quit()

def testEnabledDataStoreAutoSessionCode ( ) : import time from pprint import pprint psychopy_mon_name = 'testMonitor' exp_code = 'gap_endo_que' sess_code = 'S_{0}' . format ( long ( time . mktime ( time . localtime ( ) ) ) ) print ( 'Current Session Code will be: ' , sess_code ) io = launchHubServer ( psychopy_monitor_name = psychopy_mon_name , experiment_code = exp_code , session_code = sess_code ) display = io . devices . display print ( 'Display Psychopy Monitor Name: ' , display . getPsychopyMonitorName ( ) ) print ( 'Display Default Eye Distance: ' , display . getDefaultEyeDistance ( ) ) print ( 'Display Physical Dimensions: ' , display . getPhysicalDimensions ( ) ) print ( 'Experiment Metadata: ' ) pprint ( io . getExperimentMetaData ( ) ) print ( '\nSession Metadata: ' ) pprint ( io . getSessionMetaData ( ) ) io . quit ( )
testenableddatastoreautosessioncode is the same as testenableddatastore above .