Skip to content

Commit

Permalink
Merge pull request #486 from NREL/460_multipleResults
Browse files Browse the repository at this point in the history
460 multiple results
  • Loading branch information
cdeline committed Nov 30, 2023
2 parents 2cb5032 + 1dab269 commit 378da18
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,6 +2320,7 @@ def printModules(self):
print('Available module names: {}'.format([str(x) for x in modulenames]))
return modulenames


def addPiles(self, spacingPiles=6, pile_lenx=0.2, pile_leny=0.2, pile_height=None):
'''
Function to add support piles at determined intervals throughout the rows.
Expand Down Expand Up @@ -2409,7 +2410,7 @@ def addPiles(self, spacingPiles=6, pile_lenx=0.2, pile_leny=0.2, pile_height=Non


return


def makeScene(self, module=None, sceneDict=None, radname=None,
moduletype=None, appendtoScene=None):
Expand Down Expand Up @@ -2849,7 +2850,8 @@ def analysis1axis(self, trackerdict=None, singleindex=None, accuracy='low',
name = '1axis_%s%s'%(index,customname)
octfile = trackerdict[index]['octfile']
scene = trackerdict[index]['scene']
trackerdict[index]['Results'] = []
if not trackerdict[index].get('Results'):
trackerdict[index]['Results'] = []
if octfile is None:
continue # don't run analysis if the octfile is none
# loop over rowWanted and modWanted. Need to listify it first
Expand All @@ -2859,6 +2861,7 @@ def analysis1axis(self, trackerdict=None, singleindex=None, accuracy='low',
row_mod_pairs = list(itertools.product(rowWanted,modWanted))
for (r,m) in row_mod_pairs:
Results = {'rowWanted':r,'modWanted':m}
if customname: Results['customname'] = customname
try: # look for missing data
analysis = AnalysisObj(octfile,name)
name = '1axis_%s%s'%(index,customname,)
Expand Down

0 comments on commit 378da18

Please sign in to comment.