parameters: (mantid_ub)
return_statement: return spice_ub
docstring: Convert Mantid UB matrix to SPICE ub matrix
  
      :param mantid_ub:
      :return:
docstring_summary: Convert Mantid UB matrix to SPICE ub matrix
docstring_tokens: Convert Mantid UB matrix to SPICE ub matrix
function: def convert_mantid_ub_to_spice(mantid_ub):
      """Convert Mantid UB matrix to SPICE ub matrix
  
      :param mantid_ub:
      :return:
      """
      # create SPICE UB
      spice_ub = numpy.ndarray((3, 3), 'float')
  
      # row 0
      for i in range(3):
          spice_ub[0, i] = mantid_ub[0, i]
      # row 1
      for i in range(3):
          spice_ub[2, i] = mantid_ub[1, i]
      # row 2
      for i in range(3):
          spice_ub[1, i] = -1.*mantid_ub[2, i]
  
      return spice_ub
function_tokens: def convert_mantid_ub_to_spice ( mantid_ub ) : # create SPICE UB spice_ub = numpy . ndarray ( ( 3 , 3 ) , 'float' ) # row 0 for i in range ( 3 ) : spice_ub [ 0 , i ] = mantid_ub [ 0 , i ] # row 1 for i in range ( 3 ) : spice_ub [ 2 , i ] = mantid_ub [ 1 , i ] # row 2 for i in range ( 3 ) : spice_ub [ 1 , i ] = - 1. * mantid_ub [ 2 , i ] return spice_ub