Renamed variables, changed indentation to 2 spaces

This commit is contained in:
Peter Yefi 2021-10-26 11:11:19 +00:00
parent e0924cf45f
commit ca191ab480

View File

@ -9,139 +9,139 @@ from typing import List
class HeatPump:
"""
"""
HeatPump class
"""
def __init__(self):
self._model = None
self._cooling_pf = None
self._cooling_pa = None
self._cooling_qw = None
self._heating_pf = None
self._heating_pa = None
self._heating_qw = None
def __init__(self):
self._model = None
self._cooling_capacity = None
self._cooling_comp_power = None
self._cooling_water_flow = None
self._heating_capacity = None
self._heating_comp_power = None
self._heating_water_flow = None
@property
def model(self) -> str:
"""
@property
def model(self) -> str:
"""
Get model name
:return: str
"""
return self._model
return self._model
@model.setter
def model(self, value):
"""
Set model (name, indicated in capacity)
:param value: str
"""
if self._model is None:
self._model = value
@model.setter
def model(self, value):
"""
Set model (name, indicated in capacity)
:param value: str
"""
if self._model is None:
self._model = value
@property
def cooling_pf(self) -> List[float]:
"""
Get cooling capacity in kW
:return: [[float]]
"""
return self._cooling_pf
@property
def cooling_capacity(self) -> List[float]:
"""
Get cooling capacity in kW
:return: [[float]]
"""
return self._cooling_capacity
@cooling_pf.setter
def cooling_pf(self, value):
"""
Set cooling capacity in kW
:param value: [[float]]
"""
if self._cooling_pf is None:
self._cooling_pf = value
@cooling_capacity.setter
def cooling_capacity(self, value):
"""
Set cooling capacity in kW
:param value: [[float]]
"""
if self._cooling_capacity is None:
self._cooling_capacity = value
@property
def cooling_pa(self) -> List[float]:
"""
Get cooling compressor power input in kW
:return: [[float]]
"""
return self._cooling_pa
@property
def cooling_comp_power(self) -> List[float]:
"""
Get cooling compressor power input in kW
:return: [[float]]
"""
return self._cooling_comp_power
@cooling_pa.setter
def cooling_pa(self, value):
"""
Set the cooling compressor in kW
:param value: [[float]]
:return:
"""
if self._cooling_pa is None:
self._cooling_pa = value
@cooling_comp_power.setter
def cooling_comp_power(self, value):
"""
Set the cooling compressor in kW
:param value: [[float]]
:return:
"""
if self._cooling_comp_power is None:
self._cooling_comp_power = value
@property
def cooling_qw(self) -> List[float]:
"""
Get Water flow in m3/h
:return: [[float]]
"""
return self._cooling_qw
@property
def cooling_water_flow(self) -> List[float]:
"""
Get Water flow in m3/h
:return: [[float]]
"""
return self._cooling_water_flow
@cooling_qw.setter
def cooling_qw(self, value):
"""
Set water flow in m3/h
:param value: [[float]]
:return:
"""
if self._cooling_qw is None:
self._cooling_qw = value
@cooling_water_flow.setter
def cooling_water_flow(self, value):
"""
Set water flow in m3/h
:param value: [[float]]
:return:
"""
if self._cooling_water_flow is None:
self._cooling_water_flow = value
@property
def heating_pf(self) -> List[float]:
"""
Get heating capacity kW
:return: [[float]]
"""
return self._heating_pf
@property
def heating_capacity(self) -> List[float]:
"""
Get heating capacity kW
:return: [[float]]
"""
return self._heating_capacity
@heating_pf.setter
def heating_pf(self, value):
"""
Set the heating capacity in kW
:param value: [[float]]
:return:
"""
if self._heating_pf is None:
self._heating_pf = value
@heating_capacity.setter
def heating_capacity(self, value):
"""
Set the heating capacity in kW
:param value: [[float]]
:return:
"""
if self._heating_capacity is None:
self._heating_capacity = value
@property
def heating_pa(self) -> List[float]:
"""
Get heating compressor power kW
:return: [[float]]
"""
return self._heating_pa
@property
def heating_comp_power(self) -> List[float]:
"""
Get heating compressor power kW
:return: [[float]]
"""
return self._heating_comp_power
@heating_pa.setter
def heating_pa(self, value):
"""
Set the heating compressor power in kW
:param value: [[float]]
:return:
"""
if self._heating_pa is None:
self._heating_pa = value
@heating_comp_power.setter
def heating_comp_power(self, value):
"""
Set the heating compressor power in kW
:param value: [[float]]
:return:
"""
if self._heating_comp_power is None:
self._heating_comp_power = value
@property
def heating_qw(self) -> List[float]:
"""
Get heating water flow in m3/h
:return: [[float]]
"""
return self._heating_qw
@property
def heating_water_flow(self) -> List[float]:
"""
Get heating water flow in m3/h
:return: [[float]]
"""
return self._heating_water_flow
@heating_qw.setter
def heating_qw(self, value):
"""
Set the heating water flow in m3/h
:param value: [[float]]
:return:
"""
if self._heating_qw is None:
self._heating_qw = value
@heating_water_flow.setter
def heating_water_flow(self, value):
"""
Set the heating water flow in m3/h
:param value: [[float]]
:return:
"""
if self._heating_water_flow is None:
self._heating_water_flow = value