bifacial_radiance icon indicating copy to clipboard operation
bifacial_radiance copied to clipboard

Tutorials printing results no longer works in development

Open cdeline opened this issue 1 year ago • 1 comments

Starting in development branch, we are no longer aggregating bifacial gain in the top level Radiance Obj. This is now being recorded in the TrackerDict. This causes a lot of the outputs to fail, like when calling print('Accumulated hourly bifi gain for all the trackerdict: {:0.3}'.format(sum(demo.Wm2Back) / sum(demo.Wm2Front))).

At a minimum we should update notebooks in development to have functional print statements of results. Would this best be done with demo.calculateResults? It would be good to have some convenience functions in AnalysisObj that would make it easier to get at some of these values. It's a pain to have to go five levels deep like print(results['2021-01-14_1200']['Results'][0]['AnalysisObj'].backRatio). Maybe I'm just being dense here.

cdeline avatar Jul 20 '23 15:07 cdeline

demo.calculateResults saves a dataframe with all of the results, and also cleans it. The issue with that original way of calculating bifacial gain is that it did not clean for torqhetube, sky or ground or wrong material hitted by the rays.

shirubana avatar Jul 20 '23 15:07 shirubana