Skip to content

Commit

Permalink
Try indexing the directory differently..
Browse files Browse the repository at this point in the history
revert Whm2 labeling in compiledResults.  Not sure we want to do that..
  • Loading branch information
cdeline committed Oct 6, 2024
1 parent 75c4877 commit f10dd4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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',
'Whm2Front', 'Whm2Back', 'Grear_mean',
'Wm2Front', 'Wm2Back', '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',
'Whm2Front','Whm2Back']
'Wm2Front','Wm2Back']
dfst = dfst[cols]

return dfst
5 changes: 3 additions & 2 deletions tests/test_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ def test_gh126_raise_OSError():

def test_gh127_abspath():
"""RadianceObj path must be absolute"""
from pathlib import Path
#testpath = os.path.abspath(os.path.dirname(__file__))
#projpath = os.path.dirname(testpath)
projpath = os.path.dirname(TESTDIR)
projpath = Path(TESTDIR).parent
#projpath = os.path.dirname(TESTDIR)
temp_path = os.path.join(projpath, 'bifacial_radiance', 'TEMP')
print(temp_path)
demo = bifacial_radiance.RadianceObj(name='test', path=temp_path)
Expand Down

0 comments on commit f10dd4d

Please sign in to comment.