Skip to content

Commit bbb8b4e

Browse files
committed
test function added for ephemeris
1 parent 833f197 commit bbb8b4e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pvlib/test/test_solarposition.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def test_calc_time():
110110
def test_earthsun_distance():
111111
times = pd.date_range(datetime.datetime(2003,10,17,13,30,30), periods=1, freq='D')
112112
assert_almost_equals(1, solarposition.pyephem_earthsun_distance(times).values[0], 0)
113-
114-
113+
114+
115+
def test_ephemeris_functional():
116+
solarposition.get_solarposition(
117+
time=times, location=golden_mst, method='ephemeris')
118+
119+
115120
# add tests for daylight savings time?

0 commit comments

Comments
 (0)