From 84e2b07d1f78c9f9b0ceb1a2ed3fa6e176dfcab8 Mon Sep 17 00:00:00 2001 From: cdeline Date: Thu, 17 Oct 2024 08:05:08 -0600 Subject: [PATCH] add pytest for where frontsurfaceoffset=None and backsurfaceoffset=None --- tests/test_bifacial_radiance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_bifacial_radiance.py b/tests/test_bifacial_radiance.py index 6a1a8971..854760bf 100644 --- a/tests/test_bifacial_radiance.py +++ b/tests/test_bifacial_radiance.py @@ -403,7 +403,7 @@ def test_SingleModule_HPC(): octfile = demo.makeOct(demo.getfilelist()) # makeOct combines all of the ground, sky and object files into a .oct file. analysis = bifacial_radiance.AnalysisObj(octfile, demo.name, hpc=True) # return an analysis object including the scan dimensions for back irradiance - (frontscan,backscan) = analysis.moduleAnalysis(scene, sensorsy=1, debug=True) + (frontscan,backscan) = analysis.moduleAnalysis(scene, sensorsy=1, debug=True, frontsurfaceoffset=None, backsurfaceoffset=None) analysis.analysis(octfile, demo.name, frontscan, backscan) # compare the back vs front irradiance assert analysis.mattype[0][:12] == 'a0.0.a0.test' assert analysis.rearMat[0][:12] == 'a0.0.a0.test'