MSXIV Code Audit (Auxloss)
Script #1 Audit Details:
Script: aux_power_consumption.py
Purpose: Reads and stores information about typical and max power usage from power_budget.csv into a dictionary. Contains AuxPowerConsumption Class which consistst of various computational methods designed to outline important information from the power-budget.csv
Contents:
AuxPowerConsumption Class containing various methods to calculate different types of power consumption. These methods include:
def calculate_instantaneous_power(self, components_used):
Calculates instantaneous power from auxiliary losses in power budget
Returns sum of power consumption of all components as a float
def calculate_typical_total_power_consumption(self):
Calculates instantaneous power from auxiliary losses in power budget (assuming all components at typical level)
Returns sum of typical power consumption as a float
def calculate_energy_usage_kWh(self, components, time_in_hours):
UNDER REVIEW
Calculates energy usage from instantaneous auxiliary loses in power budget
Returns float, energy (kWh) = power (W) / 1000 * time (h)