original_docstring: 
          Parse json file or stringIO formatted settings file
          This function will likely be extended later to enable defaults and to
          check inputs
          input : settings_file - filename or stringIO obj
                  required_settings - list of required fields
          output: settings - settings dict
          
docstring: Parse json file or stringIO formatted settings file
  This function will likely be extended later to enable defaults and to
  check inputs
  input : settings_file - filename or stringIO obj
  required_settings - list of required fields
  output: settings - settings dict
docstring_tokens: Parse json file or stringIO formatted settings file This function will likely be extended later to enable defaults and to check inputs input : settings_file - filename or stringIO obj required_settings - list of required fields output : settings - settings dict
code: def parse_settings(self, settings_file):
          """
          Parse json file or stringIO formatted settings file
          This function will likely be extended later to enable defaults and to
          check inputs
          input : settings_file - filename or stringIO obj
                  required_settings - list of required fields
          output: settings - settings dict
          """
          if settings_file.__class__ is io.StringIO:
              settings = json.load(settings_file)
  
          else:
              if not os.path.exists(settings_file):
                  raise ValueError('Settings file does not exist: {0}'.format(\
                                                                  settings_file))
              with open(settings_file, 'r') as settings_fh:
                  settings = json.load(settings_fh)
  
          return settings
code_tokens: def parse_settings ( self , settings_file ) : if settings_file . __class__ is io . StringIO : settings = json . load ( settings_file ) else : if not os . path . exists ( settings_file ) : raise ValueError ( 'Settings file does not exist: {0}' . format ( settings_file ) ) with open ( settings_file , 'r' ) as settings_fh : settings = json . load ( settings_fh ) return settings
short_docstring: Parse json file or stringIO formatted settings file
  This function will likely be extended later to enable defaults and to
  check inputs
  input : settings_file - filename or stringIO obj
  required_settings - list of required fields
  output: settings - settings dict
short_docstring_tokens: Parse json file or stringIO formatted settings file This function will likely be extended later to enable defaults and to check inputs input : settings_file - filename or stringIO obj required_settings - list of required fields output : settings - settings dict
comment: """
          Parse json file or stringIO formatted settings file
          This function will likely be extended later to enable defaults and to
          check inputs
          input : settings_file - filename or stringIO obj
                  required_settings - list of required fields
          output: settings - settings dict
          """