From 4551a8bb093398e7e94758424f2ed343192dbfd0 Mon Sep 17 00:00:00 2001 From: cdeline Date: Thu, 9 Nov 2023 15:58:46 -0700 Subject: [PATCH] add customname to keys of trackerdict['Results'] --- bifacial_radiance/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bifacial_radiance/main.py b/bifacial_radiance/main.py index 66ebf1df..29b55948 100644 --- a/bifacial_radiance/main.py +++ b/bifacial_radiance/main.py @@ -2299,6 +2299,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. @@ -2387,7 +2388,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): @@ -2838,6 +2839,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,)