parameters: (inputdict_unchecked)
return_statement: return inputdict_unchecked
docstring: GTOL uses gamma-ray energies to derive a set of least-squares adjusted level
      energies.
  
      The net feeding at each level is calculated from the input gamma intensities
      and conversion coefficients. (GTOL readme)
  
      Parameters
      ----------
      inputdict_unchecked : dictionary
          dictionary that must have the following key-pair values:
              input_file : string, input ensdf file.
              report_file : string, desired gtol report file path.
              new_ensdf_file_with_results : boolean, if true then a new ensdf file
                                            with results will be created.
              output_file : string, desired gtol output file path.
              supress_gamma_comparison : boolean, if true the gamma comparison will
                                         be suppressed.
              dcc_theory_percent : double, specifies the dcc theory percentage to
                                   be used.
  
      Returns
      -------
      rtn : dictionary
          Everything in input dictionary is returned if GTOL completes successfully.
docstring_summary: GTOL uses gamma-ray energies to derive a set of least-squares adjusted level
      energies.
docstring_tokens: GTOL uses gamma - ray energies to derive a set of least - squares adjusted level energies .
function: def gtol(inputdict_unchecked):
      """
      GTOL uses gamma-ray energies to derive a set of least-squares adjusted level
      energies.
  
      The net feeding at each level is calculated from the input gamma intensities
      and conversion coefficients. (GTOL readme)
  
      Parameters
      ----------
      inputdict_unchecked : dictionary
          dictionary that must have the following key-pair values:
              input_file : string, input ensdf file.
              report_file : string, desired gtol report file path.
              new_ensdf_file_with_results : boolean, if true then a new ensdf file
                                            with results will be created.
              output_file : string, desired gtol output file path.
              supress_gamma_comparison : boolean, if true the gamma comparison will
                                         be suppressed.
              dcc_theory_percent : double, specifies the dcc theory percentage to
                                   be used.
  
      Returns
      -------
      rtn : dictionary
          Everything in input dictionary is returned if GTOL completes successfully.
      """
      inputdict = {}
      input_file = inputdict_unchecked['input_file']
      report_file = inputdict_unchecked['report_file']
      new_out = inputdict_unchecked['new_ensdf_file_with_results']
      output_file = inputdict_unchecked['output_file'] #output file if report = yes
      supress_g = inputdict_unchecked['supress_gamma_comparison']
      supress_ic = inputdict_unchecked['supress_intensity_comparison']
      dcc_theory = inputdict_unchecked['dcc_theory_percent']
  
      exe_path = path_to_exe('gtol')
      proc = subprocess.Popen([exe_path],stdout=subprocess.PIPE,stdin=subprocess.PIPE)
      inp = input_file + '\n' + report_file + '\n'
      if new_out:
          inp = inp + 'Y' + '\n' + output_file + '\n'
      else:
          inp = inp + 'N' + '\n'
      if supress_g:
          inp = inp + 'Y' + '\n'
      else:
          inp = inp + 'N' + '\n'
      if supress_ic:
          inp = inp + 'Y' + '\n'
      else:
          inp = inp + 'N' + '\n' + dcc_theory + '\n'
      proc.stdin.write(inp.encode('utf-8'))
      proc.communicate()[0]
      proc.stdin.close()
      return inputdict_unchecked
function_tokens: def gtol ( inputdict_unchecked ) : inputdict = { } input_file = inputdict_unchecked [ 'input_file' ] report_file = inputdict_unchecked [ 'report_file' ] new_out = inputdict_unchecked [ 'new_ensdf_file_with_results' ] output_file = inputdict_unchecked [ 'output_file' ] #output file if report = yes supress_g = inputdict_unchecked [ 'supress_gamma_comparison' ] supress_ic = inputdict_unchecked [ 'supress_intensity_comparison' ] dcc_theory = inputdict_unchecked [ 'dcc_theory_percent' ] exe_path = path_to_exe ( 'gtol' ) proc = subprocess . Popen ( [ exe_path ] , stdout = subprocess . PIPE , stdin = subprocess . PIPE ) inp = input_file + '\n' + report_file + '\n' if new_out : inp = inp + 'Y' + '\n' + output_file + '\n' else : inp = inp + 'N' + '\n' if supress_g : inp = inp + 'Y' + '\n' else : inp = inp + 'N' + '\n' if supress_ic : inp = inp + 'Y' + '\n' else : inp = inp + 'N' + '\n' + dcc_theory + '\n' proc . stdin . write ( inp . encode ( 'utf-8' ) ) proc . communicate ( ) [ 0 ] proc . stdin . close ( ) return inputdict_unchecked