parameters: (prm_filepath)
docstring: read diff consntants from prm file and write in table workspace
      :param prm_filepath: path to prm file
docstring_summary: read diff consntants from prm file and write in table workspace
      :param prm_filepath: path to prm file
docstring_tokens: read diff consntants from prm file and write in table workspace : param prm_filepath : path to prm file
function: def write_diff_consts_to_table_from_prm(prm_filepath):
      """
      read diff consntants from prm file and write in table workspace
      :param prm_filepath: path to prm file
      """
      diff_consts = read_diff_constants_from_prm(prm_filepath)
      # make table
      table = mantid.CreateEmptyTableWorkspace(OutputWorkspace=DIFF_CONSTS_TABLE_NAME)
      table.addColumn("int", "Index")
      table.addColumn("double", "DIFA")
      table.addColumn("double", "DIFC")
      table.addColumn("double", "TZERO")
      # add to row per spectrum to table
      for ispec in range(len(diff_consts)):
          table.addRow([ispec, *diff_consts[ispec, :]])
function_tokens: def write_diff_consts_to_table_from_prm ( prm_filepath ) : diff_consts = read_diff_constants_from_prm ( prm_filepath ) # make table table = mantid . CreateEmptyTableWorkspace ( OutputWorkspace = DIFF_CONSTS_TABLE_NAME ) table . addColumn ( "int" , "Index" ) table . addColumn ( "double" , "DIFA" ) table . addColumn ( "double" , "DIFC" ) table . addColumn ( "double" , "TZERO" ) # add to row per spectrum to table for ispec in range ( len ( diff_consts ) ) : table . addRow ( [ ispec , * diff_consts [ ispec , : ] ] )