Skip to content

Commit cc380b1

Browse files
KonstantinTrwholmgren
authored andcommitted
fix test clearsky.test simplified solis series elevation is declared twice
fix test clearsky.test simplified solis series elevation is declared twice
1 parent 72a7144 commit cc380b1

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.. _whatsnew_0520:
2+
3+
v0.5.2 (__, 2017)
4+
-------------------------
5+
6+
API Changes
7+
~~~~~~~~~~~
8+
*
9+
10+
Enhancements
11+
~~~~~~~~~~~~
12+
*
13+
14+
Bug fixes
15+
~~~~~~~~~
16+
* fixed redeclaration of test_simplified_solis_series_elevation (:issue:`387`)
17+
18+
Documentation
19+
~~~~~~~~~~~~~
20+
*
21+
22+
Testing
23+
~~~~~~~
24+
*
25+
26+
Contributors
27+
~~~~~~~~~~~~
28+
* Cliff Hansen
29+
* Will Holmgren
30+
* KonstantinTr
31+
32+

pvlib/test/test_clearsky.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -252,29 +252,6 @@ def test_haurwitz():
252252
out = clearsky.haurwitz(data_in['apparent_zenith'])
253253
assert_frame_equal(expected, out)
254254

255-
def test_simplified_solis_series_elevation():
256-
tus = Location(32.2, -111, 'US/Arizona', 700)
257-
times = pd.date_range(start='2014-06-24', end='2014-06-25', freq='3h')
258-
times_localized = times.tz_localize(tus.tz)
259-
ephem_data = solarposition.get_solarposition(times_localized, tus.latitude,
260-
tus.longitude)
261-
expected = pd.DataFrame(
262-
np.array([[ 0. , 0. , 0. ],
263-
[ 0. , 0. , 0. ],
264-
[ 377.80060035, 79.91931339, 42.77453223],
265-
[ 869.47538184, 706.37903999, 110.05635962],
266-
[ 958.89448856, 1062.44821373, 129.02349236],
267-
[ 913.3209839 , 860.48978599, 118.94598678],
268-
[ 634.01066762, 256.00505836, 72.18396705],
269-
[ 0. , 0. , 0. ],
270-
[ 0. , 0. , 0. ]]),
271-
columns=['dni', 'ghi', 'dhi'],
272-
index=times_localized)
273-
expected = expected[['dhi', 'dni', 'ghi']]
274-
275-
out = clearsky.simplified_solis(ephem_data['apparent_elevation'])
276-
assert_frame_equal(expected, out)
277-
278255

279256
def test_simplified_solis_scalar_elevation():
280257
expected = OrderedDict()

0 commit comments

Comments
 (0)