Ejemplo n.º 1
0
 def test_dirint_no_delta_kt(self):
     """Test the accuracy of the dirint model against pvlib results."""
     dirint_result = dirint([1038.62, 254.53], [90 - 10.567, 90 - 72.469],
                            [175, 175], [93193., 93193.],
                            use_delta_kt_prime=False)
     assert dirint_result[0] == pytest.approx(861.857, rel=1e-1)
     assert dirint_result[1] == pytest.approx(670.341, rel=1e-3)
Ejemplo n.º 2
0
    def test_dirint_tdew(self):
        """Test the accuracy of the dirint model against pvlib results."""
        dirint_result = dirint([1038.62, 254.53], [90 - 10.567, 90 - 72.469],
                               [175, 175], [93193., 93193.],
                               temp_dew=[10, 10])

        assert dirint_result[0] == pytest.approx(882.1372, rel=1e-2)
        assert dirint_result[1] == pytest.approx(672.5589, rel=1e-2)
Ejemplo n.º 3
0
 def test_dirint(self):
     """Test the accuracy of the dirint model against pvlib results."""
     dirint_result = dirint([1038.62, 254.53], [90 - 10.567, 90 - 72.469],
                            [175, 175], [93193., 93193.])
     assert dirint_result[0] == pytest.approx(868.8332, rel=1e-2)
     assert dirint_result[1] == pytest.approx(699.65011, rel=1e-2)