Correct bug in insel meb import

This commit is contained in:
Guille Gutierrez 2023-02-24 15:33:53 -05:00
parent 43030626ce
commit 274c8f0f8e

View File

@ -46,8 +46,8 @@ class InselMonthlyEnergyBalance:
if insel_output_file_path.is_file():
building.heating[cte.MONTH], building.cooling[cte.MONTH] = self._demand(insel_output_file_path)
building.heating[cte.YEAR] = pd.DataFrame(
[float(building.heating[cte.MONTH][cte.INSEL_MEB]).sum()], columns=[cte.INSEL_MEB]
[building.heating[cte.MONTH][cte.INSEL_MEB].astype(float).sum()], columns=[cte.INSEL_MEB]
)
building.cooling[cte.YEAR] = pd.DataFrame(
[float(building.cooling[cte.MONTH][cte.INSEL_MEB]).sum()], columns=[cte.INSEL_MEB]
[building.cooling[cte.MONTH][cte.INSEL_MEB].astype(float).sum()], columns=[cte.INSEL_MEB]
)