parameters: (outputText, errorText)
return_statement: return (corrSearchWidth, memUsage, elapsed, successParsintStats)
docstring: Parse the output from running stereo and return the search range width and
         the memory usage in GB.
docstring_summary: Parse the output from running stereo and return the search range width and
         the memory usage in GB.
docstring_tokens: Parse the output from running stereo and return the search range width and the memory usage in GB .
function: def getWidthAndMemUsageFromStereoOutput(outputText, errorText):
      '''Parse the output from running stereo and return the search range width and
         the memory usage in GB.'''
  
      successParsintStats = False
      corrSearchWidth = -1
      memUsage        = -1
      elapsed         = "-1"
      out             = outputText + "\n" + errorText
      for line in out.split('\n'):
          m = re.match("^.*?Search\s+Range:.*?Origin:.*?width:\s*(\d+)", line, re.IGNORECASE)
          if m:
              corrSearchWidth = float(m.group(1))
              successParsintStats = True
          m = re.match("^.*?elapsed=(.*?)\s+mem=(\d.*?)\s+.*?time_stereo_corr", line, re.IGNORECASE)
          if m:
              elapsed = m.group(1)
              memUsage = float(m.group(2))
              memUsage = float(round(memUsage/100000.0))/10.0 # convert to GB
              successParsintStats = True
              
      return (corrSearchWidth, memUsage, elapsed, successParsintStats)
function_tokens: def getWidthAndMemUsageFromStereoOutput ( outputText , errorText ) : successParsintStats = False corrSearchWidth = - 1 memUsage = - 1 elapsed = "-1" out = outputText + "\n" + errorText for line in out . split ( '\n' ) : m = re . match ( "^.*?Search\s+Range:.*?Origin:.*?width:\s*(\d+)" , line , re . IGNORECASE ) if m : corrSearchWidth = float ( m . group ( 1 ) ) successParsintStats = True m = re . match ( "^.*?elapsed=(.*?)\s+mem=(\d.*?)\s+.*?time_stereo_corr" , line , re . IGNORECASE ) if m : elapsed = m . group ( 1 ) memUsage = float ( m . group ( 2 ) ) memUsage = float ( round ( memUsage / 100000.0 ) ) / 10.0 # convert to GB successParsintStats = True return ( corrSearchWidth , memUsage , elapsed , successParsintStats )