In plot_sankey.py there is a discrepancy between the addition of the energy multiplication power and the blanket power into the primary heat.
During a run the warning is output to the terminal Key 'htpmw_blkt_tot' not in MFILE. KeyError! Check MFILE.
Inspecting the import statement, is :htpmw_fw_blkt = m_file.data["htpmw_blkt_tot"].get_scan(-1) .
htpmw_blkt_tot is not used in the calculation of;
BLANKETSETC = [totalblktetc + totaldivetc + totalcpetc, emultmw,-pthermmw_p - totaldivetc - totalcpetc - pnucshld,]
Investigation of the variables above shows that htpmw_fw_blkt is the required variable needed to fix the discrepepency though for some reason it is imported in as htpmw_blkt_tot which can not be found and so is returned as zero.
Changing the import to : htpmw_fw_blkt = m_file.data["htpmw_fw_blkt"].get_scan(-1) resolves the issue.
In
plot_sankey.pythere is a discrepancy between the addition of the energy multiplication power and the blanket power into the primary heat.During a run the warning is output to the terminal
Key 'htpmw_blkt_tot' not in MFILE. KeyError! Check MFILE.Inspecting the import statement, is :
htpmw_fw_blkt = m_file.data["htpmw_blkt_tot"].get_scan(-1).htpmw_blkt_totis not used in the calculation of;BLANKETSETC = [totalblktetc + totaldivetc + totalcpetc, emultmw,-pthermmw_p - totaldivetc - totalcpetc - pnucshld,]Investigation of the variables above shows that
htpmw_fw_blktis the required variable needed to fix the discrepepency though for some reason it is imported in ashtpmw_blkt_totwhich can not be found and so is returned as zero.Changing the import to :
htpmw_fw_blkt = m_file.data["htpmw_fw_blkt"].get_scan(-1)resolves the issue.