parameters: (version)
docstring: Converts a WebODM version string (major.minor.build) to a integer value
      for comparison
      >>> versionToInt("1.2.3")
      100203
      >>> versionToInt("1")
      100000
      >>> versionToInt("1.2.3.4")
      100203
      >>> versionToInt("wrong")
      -1
docstring_summary: Converts a WebODM version string (major.minor.build) to a integer value
      for comparison
      >>> versionToInt("1.2.3")
      100203
      >>> versionToInt("1")
      100000
      >>> versionToInt("1.2.3.4")
      100203
      >>> versionToInt("wrong")
      -1
docstring_tokens: Converts a WebODM version string ( major . minor . build ) to a integer value for comparison >>> versionToInt ( 1 . 2 . 3 ) 100203 >>> versionToInt ( 1 ) 100000 >>> versionToInt ( 1 . 2 . 3 . 4 ) 100203 >>> versionToInt ( wrong ) - 1
function: def versionToInt(version):
      """
      Converts a WebODM version string (major.minor.build) to a integer value
      for comparison
      >>> versionToInt("1.2.3")
      100203
      >>> versionToInt("1")
      100000
      >>> versionToInt("1.2.3.4")
      100203
      >>> versionToInt("wrong")
      -1
      """
  
      try:
          return sum([reduce(lambda mult, ver: mult * ver, i) for i in zip([100000, 100, 1], map(int, version.split(".")))])
      except:
          return -1
function_tokens: def versionToInt ( version ) : try : return sum ( [ reduce ( lambda mult , ver : mult * ver , i ) for i in zip ( [ 100000 , 100 , 1 ] , map ( int , version . split ( "." ) ) ) ] ) except : return - 1