Skip to content

Commit

Permalink
Update openTEPES_OutputResults.py
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfilias committed Jan 3, 2024
1 parent abc35de commit d4fc6b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions openTEPES/openTEPES_OutputResults.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - January 02, 2024
Open Generation, Storage, and Transmission Operation and Expansion Planning Model with RES and ESS (openTEPES) - January 03, 2024
"""

import time
Expand Down Expand Up @@ -1681,7 +1681,7 @@ def oT_selecting_data(p,sc,n):
line_df['nf' ] = '0.0'
line_df['cc' ] = 0.0

line_df = line_df.groupby(level=[0,1]).sum(numeric_only=True)
line_df = line_df.groupby(level=[0,1]).sum(numeric_only=False)
ncolors = 11
colors = list(Color('lightgreen').range_to(Color('darkred'), ncolors))
colors = ['rgb'+str(x.rgb) for x in colors]
Expand All @@ -1691,9 +1691,7 @@ def oT_selecting_data(p,sc,n):
line_df['utilization'][ni,nf] = max(line_df['vFlow'][ni,nf]/line_df['NTCFrw'][ni,nf],-line_df['vFlow'][ni,nf]/line_df['NTCBck'][ni,nf])*100.0
line_df['lon' ][ni,nf] = (mTEPES.pNodeLon[ni]+mTEPES.pNodeLon[nf]) * 0.5
line_df['lat' ][ni,nf] = (mTEPES.pNodeLat[ni]+mTEPES.pNodeLat[nf]) * 0.5
# warnings
line_df['ni' ][ni,nf] = ni
# warnings
line_df['nf' ][ni,nf] = nf
line_df['cc' ][ni,nf] += 1

Expand Down

0 comments on commit d4fc6b9

Please sign in to comment.