def ernst_table_exporter(self, cycle, outfname='<STR_LIT>',<EOL>sheetname='<STR_LIT>'):
from xlsxwriter.workbook import Workbook <EOL>all_data = np.array(self.get(cycle,'<STR_LIT>'))<EOL>header_data = self.se.isotopes<EOL>mass_data = np.array(self.get(cycle,'<STR_LIT>'))[np.newaxis]<EOL>header_data = np.hstack((['<STR_LIT>'],header_data))<EOL>all_data    = np.hstack((mass_data.transpose(),all_data))<EOL>for i in range(len(all_data)):<EOL><INDENT>for j in range(len(all_data[i])):<EOL><INDENT>if all_data[i][j] == <NUM_LIT>:<EOL><INDENT>all_data[i][j] = <NUM_LIT:0.><EOL><DEDENT><DEDENT><DEDENT>colzero = <NUM_LIT:0><EOL>all_sum = all_data.sum(<NUM_LIT:0>)<EOL>for i in range(len(all_sum)):<EOL><INDENT>if all_sum[i] == <NUM_LIT:0.>:<EOL><INDENT>colzero += <NUM_LIT:1><EOL><DEDENT><DEDENT>print(str(colzero) + '<STR_LIT>')<EOL>all_data_fil = np.zeros((len(all_data),len(all_data[<NUM_LIT:0>])-colzero))<EOL>header_data_fil = np.zeros((len(header_data)-colzero),dtype='<STR_LIT>')<EOL>k = <NUM_LIT:0><EOL>for j in range(len(all_data[<NUM_LIT:0>])):<EOL><INDENT>if all_sum[j] != <NUM_LIT:0>:<EOL><INDENT>for i in range(len(all_data)):<EOL><INDENT>all_data_fil[i][k] = all_data[i][j]<EOL><DEDENT>header_data_fil[k] = header_data[j]<EOL>k += <NUM_LIT:1><EOL><DEDENT><DEDENT>excelfile = Workbook(outfname + '<STR_LIT>')<EOL>wsh = excelfile.add_worksheet(sheetname)<EOL>print('<STR_LIT>')<EOL>for i in range(len(all_data_fil)):<EOL><INDENT>for j in range(len(all_data_fil[i])):<EOL><INDENT>if i == <NUM_LIT:0>:<EOL><INDENT>wsh.write(<NUM_LIT:0>,j,header_data_fil[j])<EOL><DEDENT>wsh.write(i+<NUM_LIT:1>,j,all_data_fil[i][j])<EOL><DEDENT><DEDENT>excelfile.close()<EOL>return None<EOL>
This routine takes NuGrid data (model output) for a given
cycle and writes it into an Excel sheet.

This is one format as requested by Ernst Zinner in June 2013
(through Marco).  If you want all radioactive isotopes, start
from the restart file.  Empty columns are not written out and
you will get a message how many were empty.  Please note that
only one cycle is written out.

Parameters
----------
cycle : integer
    Number of the cycle to consider.
outfname : string, optional
    File name to write it to, .xlsx is appended automatically.
    The default is 'table_out'.
sheetname : string, optional
    Name of the sheet in the excel file.  The default is
    'Sheet 1'.