Skip to content

Commit e0e7d99

Browse files
committed
add test
1 parent 8069470 commit e0e7d99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pvlib/tests/test_irradiance.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,14 @@ def test_aoi_and_aoi_projection(surface_tilt, surface_azimuth, solar_zenith,
792792
assert_allclose(aoi_projection, aoi_proj_expected, atol=1e-6)
793793

794794

795+
def test_aoi_projection_precision():
796+
# GH 1185
797+
zenith = 89.26778228223463
798+
azimuth = 60.932028605997004
799+
projection = irradiance.aoi_projection(zenith, azimuth, zenith, azimuth)
800+
assert projection == 1
801+
802+
795803
@pytest.fixture
796804
def airmass_kt():
797805
# disc algorithm stopped at am=12. test am > 12 for out of range behavior

0 commit comments

Comments
 (0)