parameters: (entry, ext, inst)
return_statement: return filename, ext
docstring: If entry not already a valid filename make it into one
docstring_summary: If entry not already a valid filename make it into one
docstring_tokens: If entry not already a valid filename make it into one
function: def _make_filename(entry, ext, inst):
      """
      If entry not already a valid filename make it into one
      """
      try:
          run_num = int(entry)  # The user entered something that translates to a run number, convert it to a file
          filename = inst + _pad_zero(run_num, inst) + ext
      except ValueError:  # We don't have a run number, assume it's a valid filename
          filename = entry
          dummy, ext = os.path.splitext(filename)
  
      return filename, ext
function_tokens: def _make_filename ( entry , ext , inst ) : try : run_num = int ( entry ) # The user entered something that translates to a run number, convert it to a file filename = inst + _pad_zero ( run_num , inst ) + ext except ValueError : # We don't have a run number, assume it's a valid filename filename = entry dummy , ext = os . path . splitext ( filename ) return filename , ext