From 38f67790f7e681dc7066873729f57891a72c41ff Mon Sep 17 00:00:00 2001 From: cdeline Date: Thu, 9 Nov 2023 14:47:24 -0700 Subject: [PATCH] Only re-initialize trackerdict[index][Results] if it's empty --- bifacial_radiance/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bifacial_radiance/main.py b/bifacial_radiance/main.py index c83907d5..66ebf1df 100644 --- a/bifacial_radiance/main.py +++ b/bifacial_radiance/main.py @@ -2827,7 +2827,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