From a168a6ad40e49aafd0b822c10153708267e8d0ed Mon Sep 17 00:00:00 2001 From: cdeline Date: Fri, 4 Oct 2024 16:24:58 -0600 Subject: [PATCH] more pytests for default sensorsy and sensorsx --- tests/test_bifacial_radiance.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_bifacial_radiance.py b/tests/test_bifacial_radiance.py index f1f01a55..0b3a160e 100644 --- a/tests/test_bifacial_radiance.py +++ b/tests/test_bifacial_radiance.py @@ -474,6 +474,11 @@ def test_analyzeRow(): temp = analysis.__repr__() # does the repr compile at all? assert analysis.rearX == pytest.approx([0.25, 0, -0.25]) assert analysis.x == pytest.approx([.333, .167, 0, -.167, -.333], abs=.001) + # test default xscan and yscan = 1 + rowscan = analysis.analyzeRow(octfile=octfile, scene=scene, name=name, + rowWanted=1, sensorsy=None, sensorsx=None) + assert analysis.x == pytest.approx([0]) + assert analysis.rearX == pytest.approx([0]) def test_addMaterialGroundRad(): # test addMaterialGroundRad. requires metdata for boulder.