small modelchain.py update
For full year hourly simulations, the output screen printed a "Bifacial ratio average for 4287 datapoints", even when that average only included 1 , 2 , 3 .. datapoints at teh beginning. Modified phrasing to reflect how many datapoints are considered in that ratio average.
@@ -235,8 +235,9 @@ def runModelChain(simulationParamsDict, sceneParamsDict, timeControlParamsDict=N
trackerdict = _addRadfile(trackerdict) # instead of makeScene1axis
-
+ footime=0
for time in sorted(timelist):
+ footime = footime+1
trackerdict = demo.makeOct1axis(trackerdict, singleindex=time,
hpc=simulationParamsDict['hpc'])
trackerdict = demo.analysis1axis(trackerdict, singleindex=time,
@@ -244,7 +245,7 @@ def runModelChain(simulationParamsDict, sceneParamsDict, timeControlParamsDict=N
rowWanted=analysisParamsDict['rowWanted'],
sensorsy=analysisParamsDict['sensorsy'])
analysis = trackerdict[time]['AnalysisObj'] # save and return the last run
- print('Bifacial ratio average for %d datapoints: %0.3f' % (
+ print('Bifacial ratio average for %d out of %d datapoints: %0.3f' % ( footime,
timelist.__len__(),
sum(demo.Wm2Back) / sum(demo.Wm2Front)))
