Skip to content

Commit

Permalink
add test for makeImage and makeFalseColor, small fix gendaylit2manual…
Browse files Browse the repository at this point in the history
… test
  • Loading branch information
shirubana committed Nov 27, 2019
1 parent a039529 commit 2f05732
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/test_bifacial_radiance.py
Expand Up @@ -292,7 +292,7 @@ def test_gendaylit2manual():
demo = bifacial_radiance.RadianceObj(name)
demo.setGround('litesoil')
skyname = demo.gendaylit2manual(dni = 700, dhi = 100, sunalt = 67, sunaz = 180) # Invented values.
assert skyname == 'skies\\sky2__test_set1axis.rad'
assert skyname == 'skies\sky2__test_gendaylit2manual.rad'



Expand Down Expand Up @@ -321,4 +321,9 @@ def test_SingleModule_end_to_end():
assert analysis.x == [0]
assert analysis.y == [0]
assert np.mean(analysis.Wm2Front) == pytest.approx(1025, abs = 2)
assert np.mean(analysis.Wm2Back) == pytest.approx(166, abs = 6)
analysis.makeImage('side.vp')
analysis.makeFalseColor('side.vp') #TODO: this works on silvanas computer,
# side.vp must exist inside of views folder in test folder... make sure this works
# in other computers
assert np.mean(analysis.Wm2Back) == pytest.approx(166, abs = 6)

0 comments on commit 2f05732

Please sign in to comment.