Skip to content

Commit

Permalink
update calculatePerformanceGencumsky to labels Whm2Front and Whm2Back.
Browse files Browse the repository at this point in the history
…Fixes #498
  • Loading branch information
cdeline committed Oct 6, 2024
1 parent 350813f commit 8da06e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3126,7 +3126,7 @@ def _printRow(analysisobj, key):



else:
else: #cumulative analysis
if module is None:
for key in keys: # loop over trackerdict to find first available module
try:
Expand All @@ -3139,7 +3139,8 @@ def _printRow(analysisobj, key):
module_local = module
self.compiledResults = performance.calculatePerformanceGencumsky(results=self.results,
bifacialityfactor=module_local.bifi,
fillcleanedSensors=False)
fillcleanedSensors=False).rename(
columns={'Wm2Front':'Whm2Front', 'Wm2Back':'Whm2Back'})

self.compiledResults.to_csv(os.path.join('results', 'Cumulative_Results.csv'),
float_format='%0.3f', index=False)
Expand Down
4 changes: 2 additions & 2 deletions bifacial_radiance/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,14 @@ def _dict2DF(df, key):

dfst = pd.DataFrame(zip(cumRow, cumMod, cumScene, cumFront, cumWM2, cumBack, Grear_mean,
POA_eff), columns=('rowNum', 'modNum','sceneNum', 'Gfront_mean',
'Wm2Front', 'Wm2Back', 'Grear_mean',
'Whm2Front', 'Whm2Back', 'Grear_mean',
'POA_eff'))

dfst['BGG'] = dfst['Grear_mean']*100*bifacialityfactor/dfst['Gfront_mean']

# Reordering columns
cols = ['rowNum', 'modNum','sceneNum', 'BGG', 'Gfront_mean', 'Grear_mean', 'POA_eff',
'Wm2Front','Wm2Back']
'Whm2Front','Whm2Back']
dfst = dfst[cols]

return dfst

0 comments on commit 8da06e8

Please sign in to comment.