parameters: (run_details, processed_spectra)
return_statement: return d_spacing_group, tof_group
docstring: Splits a processed list containing all focused banks into TOF and
      d-spacing groups. It also sets the names of the output workspaces
      to the run number(s) - Result<Unit>-<Bank Number> e.g.
      123-130-ResultTOF-3
      :param run_details: The run details associated with this run
      :param processed_spectra: A list containing workspaces, one entry per focused bank.
      :return: A workspace group for dSpacing and TOF in that order
docstring_summary: Splits a processed list containing all focused banks into TOF and
      d-spacing groups. It also sets the names of the output workspaces
      to the run number(s) - Result<Unit>-<Bank Number> e.g.
      123-130-ResultTOF-3
      :param run_details: The run details associated with this run
      :param processed_spectra: A list containing workspaces, one entry per focused bank.
      :return: A workspace group for dSpacing and TOF in that order
docstring_tokens: Splits a processed list containing all focused banks into TOF and d - spacing groups . It also sets the names of the output workspaces to the run number ( s ) - Result<Unit > - <Bank Number > e . g . 123 - 130 - ResultTOF - 3 : param run_details : The run details associated with this run : param processed_spectra : A list containing workspaces one entry per focused bank . : return : A workspace group for dSpacing and TOF in that order
function: def split_into_tof_d_spacing_groups(run_details, processed_spectra):
      """
      Splits a processed list containing all focused banks into TOF and
      d-spacing groups. It also sets the names of the output workspaces
      to the run number(s) - Result<Unit>-<Bank Number> e.g.
      123-130-ResultTOF-3
      :param run_details: The run details associated with this run
      :param processed_spectra: A list containing workspaces, one entry per focused bank.
      :return: A workspace group for dSpacing and TOF in that order
      """
      d_spacing_output = []
      tof_output = []
      run_number = str(run_details.output_run_string)
      ext = run_details.file_extension if run_details.file_extension else ""
  
      for name_index, ws in enumerate(processed_spectra, start=1):
          d_spacing_out_name = run_number + ext + "-ResultD_" + str(name_index)
          tof_out_name = run_number + ext + "-ResultTOF_" + str(name_index)
  
          d_spacing_output.append(
              mantid.ConvertUnits(InputWorkspace=ws,
                                  OutputWorkspace=d_spacing_out_name,
                                  Target="dSpacing"))
          tof_output.append(
              mantid.ConvertUnits(InputWorkspace=ws, OutputWorkspace=tof_out_name, Target="TOF"))
  
      # Group the outputs
      d_spacing_group_name = run_number + ext + "-ResultD"
      d_spacing_group = mantid.GroupWorkspaces(InputWorkspaces=d_spacing_output,
                                               OutputWorkspace=d_spacing_group_name)
      tof_group_name = run_number + ext + "-ResultTOF"
      tof_group = mantid.GroupWorkspaces(InputWorkspaces=tof_output, OutputWorkspace=tof_group_name)
  
      return d_spacing_group, tof_group
function_tokens: def split_into_tof_d_spacing_groups ( run_details , processed_spectra ) : d_spacing_output = [ ] tof_output = [ ] run_number = str ( run_details . output_run_string ) ext = run_details . file_extension if run_details . file_extension else "" for name_index , ws in enumerate ( processed_spectra , start = 1 ) : d_spacing_out_name = run_number + ext + "-ResultD_" + str ( name_index ) tof_out_name = run_number + ext + "-ResultTOF_" + str ( name_index ) d_spacing_output . append ( mantid . ConvertUnits ( InputWorkspace = ws , OutputWorkspace = d_spacing_out_name , Target = "dSpacing" ) ) tof_output . append ( mantid . ConvertUnits ( InputWorkspace = ws , OutputWorkspace = tof_out_name , Target = "TOF" ) ) # Group the outputs d_spacing_group_name = run_number + ext + "-ResultD" d_spacing_group = mantid . GroupWorkspaces ( InputWorkspaces = d_spacing_output , OutputWorkspace = d_spacing_group_name ) tof_group_name = run_number + ext + "-ResultTOF" tof_group = mantid . GroupWorkspaces ( InputWorkspaces = tof_output , OutputWorkspace = tof_group_name ) return d_spacing_group , tof_group