Commit ab0bf15a authored by ZZH's avatar ZZH

fix inv eval 2024-12-31 14:14

parent c7f1fa76
......@@ -294,8 +294,8 @@ class EnergyModel:
irr = calculate_irr(revenue_year.getValue(),
Investment_Cost.getValue(), max_invest_year)
if IOR > self.max_invest_year:
return {"提示": f"当前区域的投资回报比(IOR = {IOR:.2f})高于"
f"设置的投资上限,建议不要投资。"}
return {"Error": f"当前区域的投资回报比(IOR = {IOR:.2f})高于"
f"设置的投资上限,建议不要投资。"}
else:
result = {
'pv': P_PV.x,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment