parameters: (file_name)
return_statement: return xyz_points, intensities
docstring: Load an ASCii file containing MDEvents and generated by mantid algorithm ConvertCWSDMDtoHKL()
      :param file_name:
      :return:
docstring_summary: Load an ASCii file containing MDEvents and generated by mantid algorithm ConvertCWSDMDtoHKL()
      :param file_name:
      :return:
docstring_tokens: Load an ASCii file containing MDEvents and generated by mantid algorithm ConvertCWSDMDtoHKL () : param file_name : : return :
function: def load_hb3a_md_data(file_name):
      """ Load an ASCii file containing MDEvents and generated by mantid algorithm ConvertCWSDMDtoHKL()
      :param file_name:
      :return:
      """
      # check
      assert isinstance(file_name, str) and os.path.exists(file_name)
  
      # parse
      data_file = open(file_name, 'r')
      raw_lines = data_file.readlines()
      data_file.close()
  
      # construct ND data array
      xyz_points = numpy.zeros((len(raw_lines), 3))
      intensities = numpy.zeros((len(raw_lines), ))
  
      # parse
      for i in range(len(raw_lines)):
          line = raw_lines[i].strip()
  
          # skip empty line
          if len(line) == 0:
              continue
  
          # set value
          terms = line.split(',')
          for j in range(3):
              xyz_points[i][j] = float(terms[j])
          intensities[i] = float(terms[3])
      # END-FOR
  
      return xyz_points, intensities
function_tokens: def load_hb3a_md_data ( file_name ) : # check assert isinstance ( file_name , str ) and os . path . exists ( file_name ) # parse data_file = open ( file_name , 'r' ) raw_lines = data_file . readlines ( ) data_file . close ( ) # construct ND data array xyz_points = numpy . zeros ( ( len ( raw_lines ) , 3 ) ) intensities = numpy . zeros ( ( len ( raw_lines ) , ) ) # parse for i in range ( len ( raw_lines ) ) : line = raw_lines [ i ] . strip ( ) # skip empty line if len ( line ) == 0 : continue # set value terms = line . split ( ',' ) for j in range ( 3 ) : xyz_points [ i ] [ j ] = float ( terms [ j ] ) intensities [ i ] = float ( terms [ 3 ] ) # END-FOR return xyz_points , intensities