def _start(**kwargs):
 import os
 from psychopy import visual
 openWindows = visual.window.openWindows
 if (len(openWindows) == 0):
  print 'The PsychoPy Window must be created prior to starting iohub. Exiting...'
  sys.exit(1)
 '\n    Display:\n        name: display\n        reporting_unit_type: pix\n        device_number: 0\n        physical_dimensions:\n            width: 500\n            height: 281\n            unit_type: mm\n        default_eye_distance:\n            surface_center: 550\n            unit_type: mm\n        psychopy_monitor_name: default\n        override_using_psycho_settings: False\n    '
 if (not kwargs.has_key('experiment_code')):
  kwargs['experiment_code'] = 'default_exp'
 if kwargs.has_key('iohub_config_name'):
  print 'Starting iohub with iohub_config_name provided.'
  return launchHubServer(**kwargs)
 iohub_config_name = './iohub_config.yaml'
 if os.path.isfile(os.path.normpath(os.path.abspath(iohub_config_name))):
  kwargs['iohub_config_name'] = os.path.normpath(os.path.abspath(iohub_config_name))
  print 'Starting iohub with iohub_config_name:', kwargs['iohub_config_name']
  return launchHubServer(**kwargs)
 print 'Starting iohub with default settings.'
 return launchHubServer(**kwargs)

def _start ( ** kwargs ) : import os from psychopy import visual openWindows = visual . window . openWindows if ( len ( openWindows ) == 0 ) : print 'The PsychoPy Window must be created prior to starting iohub. Exiting...' sys . exit ( 1 ) '\n    Display:\n        name: display\n        reporting_unit_type: pix\n        device_number: 0\n        physical_dimensions:\n            width: 500\n            height: 281\n            unit_type: mm\n        default_eye_distance:\n            surface_center: 550\n            unit_type: mm\n        psychopy_monitor_name: default\n        override_using_psycho_settings: False\n    ' if ( not kwargs . has_key ( 'experiment_code' ) ) : kwargs [ 'experiment_code' ] = 'default_exp' if kwargs . has_key ( 'iohub_config_name' ) : print 'Starting iohub with iohub_config_name provided.' return launchHubServer ( ** kwargs ) iohub_config_name = './iohub_config.yaml' if os . path . isfile ( os . path . normpath ( os . path . abspath ( iohub_config_name ) ) ) : kwargs [ 'iohub_config_name' ] = os . path . normpath ( os . path . abspath ( iohub_config_name ) ) print 'Starting iohub with iohub_config_name:' , kwargs [ 'iohub_config_name' ] return launchHubServer ( ** kwargs ) print 'Starting iohub with default settings.' return launchHubServer ( ** kwargs )
do not use this method .