Skip to content

Commit 6036106

Browse files
committed
fix cs test numbers due to new solpos
1 parent 34b925d commit 6036106

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

pvlib/test/test_clearsky.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from pvlib import clearsky
1313
from pvlib import solarposition
1414

15+
from . import requires_scipy
16+
1517
# setup times and location to be tested.
1618
tus = Location(32.2, -111, 'US/Arizona', 700)
1719
times = pd.date_range(start='2014-06-24', end='2014-06-25', freq='3h')
@@ -20,17 +22,16 @@
2022
ephem_data = solarposition.get_solarposition(times_localized, tus.latitude,
2123
tus.longitude)
2224

23-
25+
@requires_scipy
2426
def test_ineichen_required():
2527
# the clearsky function should call lookup_linke_turbidity by default
26-
# will fail without scipy
2728
expected = pd.DataFrame(np.array([[0.,0.,0.],
2829
[0.,0.,0.],
29-
[40.53660309,302.47614235,78.1470311],
30-
[98.88372629,865.98938602,699.93403875],
31-
[122.57870881,931.83716051,1038.62116584],
32-
[109.30270612,899.88002304,847.68806472],
33-
[64.25699595,629.91187925,254.53048144],
30+
[51.0100314,259.73341927,82.76689082],
31+
[104.99512329,832.22000002,682.43280974],
32+
[121.97931179,901.31646645,1008.00975362],
33+
[112.5726345,867.73434086,824.48415382],
34+
[76.61228483,587.82419004,253.67624301],
3435
[0.,0.,0.],
3536
[0.,0.,0.]]),
3637
columns=['dhi', 'dni', 'ghi'],
@@ -42,11 +43,11 @@ def test_ineichen_required():
4243
def test_ineichen_supply_linke():
4344
expected = pd.DataFrame(np.array([[0.,0.,0.],
4445
[0.,0.,0.],
45-
[40.18673553,322.0649964,80.23287692],
46-
[95.14405816,876.49507151,703.48596755],
47-
[118.45873721,939.81653473,1042.34531752],
48-
[105.36671577,909.113377,851.3283881],
49-
[61.91607984,647.40869542,257.47471759],
46+
[39.81862097,316.23284759,78.48350328],
47+
[95.12705301,876.43232906,703.24156169],
48+
[118.45796469,939.81499487,1042.33401282],
49+
[105.35769022,909.0884868,851.19721202],
50+
[61.83556162,646.45362207,256.55983299],
5051
[0.,0.,0.],
5152
[0.,0.,0.]]),
5253
columns=['dhi', 'dni', 'ghi'],
@@ -66,11 +67,11 @@ def test_ineichen_solpos():
6667
def test_ineichen_airmass():
6768
expected = pd.DataFrame(np.array([[0.,0.,0.],
6869
[0.,0.,0.],
69-
[41.70761136,293.72203458,78.22953786],
70-
[95.20590465,876.1650047,703.31872722],
71-
[118.46089555,939.8078753,1042.33896321],
72-
[105.39577655,908.97804342,851.24640259],
73-
[62.35382269,642.91022293,256.55363539],
70+
[53.52826665,250.64463008,84.17386592],
71+
[101.32775752,842.86030421,686.14824255],
72+
[117.7568185,909.70199089,1012.03056908],
73+
[108.61662929,877.27820363,828.35817853],
74+
[75.15682967,601.03375193,256.19976209],
7475
[0.,0.,0.],
7576
[0.,0.,0.]]),
7677
columns=['dhi', 'dni', 'ghi'],

0 commit comments

Comments
 (0)