'][k])             if (results['gen'][k, GEN_STATUS] > 0) & (abs(results['reserves']['R'][k]) > 0e-0):                 fd.write('%00.0f' % results['reserves']['R'][k])             else:                 fd.write('       -  ')              fd.write('%00.0f' % results['reserves']['Rm