parameters: (instrument_name, exp_no, scan_no, pt_list)
return_statement: return merged_ws_name
docstring: Build the merged scan's MDEventworkspace's name under convention
      Requirements: experiment number and scan number are integer. Pt list is a list of integer
      :param instrument_name:
      :param exp_no:
      :param scan_no:
      :param pt_list:
      :return:
docstring_summary: Build the merged scan's MDEventworkspace's name under convention
      Requirements: experiment number and scan number are integer. Pt list is a list of integer
      :param instrument_name:
      :param exp_no:
      :param scan_no:
      :param pt_list:
      :return:
docstring_tokens: Build the merged scan s MDEventworkspace s name under convention Requirements : experiment number and scan number are integer . Pt list is a list of integer : param instrument_name : : param exp_no : : param scan_no : : param pt_list : : return :
function: def get_merged_hkl_md_name(instrument_name, exp_no, scan_no, pt_list):
      """
      Build the merged scan's MDEventworkspace's name under convention
      Requirements: experiment number and scan number are integer. Pt list is a list of integer
      :param instrument_name:
      :param exp_no:
      :param scan_no:
      :param pt_list:
      :return:
      """
      # check
      assert isinstance(instrument_name, str), 'Instrument name {0} shall be a string but not a {1}' \
                                               ''.format(instrument_name, type(instrument_name))
      assert isinstance(exp_no, int) and isinstance(scan_no, int),\
          'Both experiment number {0} ({1}) and scan number {2} ({3}) shall be integer.' \
          ''.format(exp_no, type(exp_no), scan_no, type(scan_no))
      assert isinstance(pt_list, list), 'Pt list {0} shall be a list but not a {1}'.format(pt_list, type(pt_list))
      if len(pt_list) == 0:
          raise RuntimeWarning('Pt list cannot be empty.')
  
      merged_ws_name = '%s_Exp%d_Scan%d_Pt%d_%d_HKL_MD' % (instrument_name, exp_no, scan_no,
                                                           pt_list[0], pt_list[-1])
  
      return merged_ws_name
function_tokens: def get_merged_hkl_md_name ( instrument_name , exp_no , scan_no , pt_list ) : # check assert isinstance ( instrument_name , str ) , 'Instrument name {0} shall be a string but not a {1}' '' . format ( instrument_name , type ( instrument_name ) ) assert isinstance ( exp_no , int ) and isinstance ( scan_no , int ) , 'Both experiment number {0} ({1}) and scan number {2} ({3}) shall be integer.' '' . format ( exp_no , type ( exp_no ) , scan_no , type ( scan_no ) ) assert isinstance ( pt_list , list ) , 'Pt list {0} shall be a list but not a {1}' . format ( pt_list , type ( pt_list ) ) if len ( pt_list ) == 0 : raise RuntimeWarning ( 'Pt list cannot be empty.' ) merged_ws_name = '%s_Exp%d_Scan%d_Pt%d_%d_HKL_MD' % ( instrument_name , exp_no , scan_no , pt_list [ 0 ] , pt_list [ - 1 ] ) return merged_ws_name