From 6565ae4094d779adbeedac76cc9854d142f30de4 Mon Sep 17 00:00:00 2001 From: Ioannis Sifnaios Date: Thu, 6 Jun 2024 13:59:13 +0200 Subject: [PATCH 1/3] Change accuracy of test function --- pvlib/tests/test_temperature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py index 18560501fb..26a5364617 100644 --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -84,8 +84,8 @@ def test_pvsyst_cell_ndarray(): irrads = np.array([0, 500, 0]) winds = np.array([10, 5, 0]) result = temperature.pvsyst_cell(irrads, temps, wind_speed=winds) - expected = np.array([0.0, 23.96551, 5.0]) - assert_allclose(expected, result, 3) + expected = np.array([0.0, 23.965517, 5.0]) + assert_allclose(expected, result) def test_pvsyst_cell_series(): From aab847880d11e67a765c00fc0c2c64678671140b Mon Sep 17 00:00:00 2001 From: Ioannis Sifnaios Date: Thu, 6 Jun 2024 16:32:32 +0200 Subject: [PATCH 2/3] Update value --- pvlib/tests/test_temperature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py index 26a5364617..f67467e669 100644 --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -84,7 +84,7 @@ def test_pvsyst_cell_ndarray(): irrads = np.array([0, 500, 0]) winds = np.array([10, 5, 0]) result = temperature.pvsyst_cell(irrads, temps, wind_speed=winds) - expected = np.array([0.0, 23.965517, 5.0]) + expected = np.array([0.0, 23.96551, 5.0]) assert_allclose(expected, result) From ae8f8257899bd19cfc8fd12faac7d4fdef6f9516 Mon Sep 17 00:00:00 2001 From: Ioannis Sifnaios Date: Thu, 6 Jun 2024 16:58:04 +0200 Subject: [PATCH 3/3] Update test_temperature.py --- pvlib/tests/test_temperature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvlib/tests/test_temperature.py b/pvlib/tests/test_temperature.py index f67467e669..652e07532c 100644 --- a/pvlib/tests/test_temperature.py +++ b/pvlib/tests/test_temperature.py @@ -84,7 +84,7 @@ def test_pvsyst_cell_ndarray(): irrads = np.array([0, 500, 0]) winds = np.array([10, 5, 0]) result = temperature.pvsyst_cell(irrads, temps, wind_speed=winds) - expected = np.array([0.0, 23.96551, 5.0]) + expected = np.array([0.0, 23.965517, 5.0]) assert_allclose(expected, result) @@ -95,7 +95,7 @@ def test_pvsyst_cell_series(): winds = pd.Series([10, 5, 0], index=times) result = temperature.pvsyst_cell(irrads, temps, wind_speed=winds) - expected = pd.Series([0.0, 23.96551, 5.0], index=times) + expected = pd.Series([0.0, 23.965517, 5.0], index=times) assert_series_equal(expected, result)