Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
ab0bf15a
Commit
ab0bf15a
authored
Dec 31, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inv eval 2024-12-31 14:14
parent
c7f1fa76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ems.py
unify_api/algo/ems/ems.py
+2
-2
No files found.
unify_api/algo/ems/ems.py
View file @
ab0bf15a
...
...
@@ -294,7 +294,7 @@ 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})高于"
return
{
"
Error
"
:
f
"当前区域的投资回报比(IOR = {IOR:.2f})高于"
f
"设置的投资上限,建议不要投资。"
}
else
:
result
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment