Skip to content

Commit

Permalink
Only re-initialize trackerdict[index][Results] if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Nov 29, 2023
1 parent 2cb5032 commit 8e22bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bifacial_radiance/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2849,7 +2849,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 Down

0 comments on commit 8e22bd2

Please sign in to comment.