Included energy system export factory

This commit is contained in:
Peter Yefi 2021-10-29 15:28:10 +00:00
parent 20ca5a0fc3
commit 12f8beb0d2

View File

@ -0,0 +1,28 @@
"""
EnergySystemsFactory exports energy systems into several formats
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Peter Yefi peteryefi@gmail.com
"""
from pathlib import Path
from exports.energy_systems.heat_pump_export import HeatPumpExport
class EnergySystemsFactory:
"""
Exports factory class for energy systems
"""
def __init__(self, city, base_path=None):
self._city = city
if base_path is None:
base_path = base_path = Path(Path(__file__).parent.parent / 'data/energy_systems')
self._base_path = base_path
def export_heat_pump(self):
"""
Exports heat pump performance data as coefficients
of some objective function
:return: None
"""
HeatPumpExport(self._base_path, self._city).export_xlsx()