Skip to content

Commit

Permalink
more pytests for default sensorsy and sensorsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeline committed Oct 4, 2024
1 parent 5c6e0d1 commit a168a6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_bifacial_radiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a168a6a

Please sign in to comment.