in analysis/GreenSKU-Framework/src/carbon_model.py [0:0]
def get_info_dict_small(self) -> Dict[str, Any]:
"""Get a small subset of the information about the server as a dictionary."""
info = {}
info['server_count'] = self.server_count
info['sellable_core_count'] = self.sellable_cores
info['rack_embodied_perc'] = self.rack_embodied * 100 / self.rack_carbon
info['rack_carbon'] = self.rack_carbon
info['carbon_per_sellable_core'] = self.get_carbon_per_sellable_core()
for key in info:
if isinstance(info[key], float):
info[key] = round(info[key], 2)
return info