cyclus / cymetric

http://fuelcycle.org/user/cymetric/index.html
Other
5 stars 20 forks source link

New metrics to return Inventory table with quantity (kg/GWe) in terms of cumulative power from time 0 to time of the simulation #163

Open louishartono opened 4 years ago

louishartono commented 4 years ago

Merging prerequisite: PR #164

Made some changes to metrics.py. Added a new metrics called "InventoryQuantityPerCumulativePower" to return the explicit inventory table with quantity in units of kg/GWe, calculated by dividing the original quantity by the cumulative sum of the electricity generated in TimeSeriesPower metric from time 0 and created the test to check the expected output as well. Feel free to give feedback or suggestions :).