Added return type to objective_function

This commit is contained in:
Peter Yefi 2021-11-08 16:37:58 +00:00
parent 2976434bc7
commit 102e6ae2d4

View File

@ -122,7 +122,7 @@ class XlsxHeatPumpParameters:
popt, _ = curve_fit(self._objective_function, [x_values, out_temp], heat_pump_data)
return popt.tolist()
def _objective_function(self, xdata, a1, a2, a3, a4, a5, a6):
def _objective_function(self, xdata, a1, a2, a3, a4, a5, a6) -> float:
"""
Objective function for computing coefficients
:param xdata: