parameters: (log_filename)
docstring: determines the miniumum width.
docstring_summary: determines the miniumum width.
docstring_tokens: determines the miniumum width .
function: def determine_min_w(log_filename):
      """
      determines the miniumum width.
      """
      min_w_regex = re.compile(r"\s*Best routing used a channel width factor of (?P<min_w>\d+).")
      with open(log_filename) as file:
          for line in file:
              match = min_w_regex.match(line)
              if match:
                  return int(match.group("min_w"))
  
      raise InspectError("Failed to find minimum channel width.", filename=log_filename)
function_tokens: def determine_min_w ( log_filename ) : min_w_regex = re . compile ( r"\s*Best routing used a channel width factor of (?P<min_w>\d+)." ) with open ( log_filename ) as file : for line in file : match = min_w_regex . match ( line ) if match : return int ( match . group ( "min_w" ) ) raise InspectError ( "Failed to find minimum channel width." , filename = log_filename )