Skip to content

Commit cf830b5

Browse files
committed
added method epemeris to get_solarposition
1 parent bbb8b4e commit cf830b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pvlib/solarposition.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ def get_solarposition(time, location, method='pyephem', pressure=101325,
4646
ephem_df = spa(time, location)
4747
elif method == 'pyephem':
4848
ephem_df = pyephem(time, location, pressure, temperature)
49+
elif method == 'ephemeris':
50+
ephem_df = ephemeris(time, location, pressure, temperature)
4951
else:
5052
raise ValueError('Invalid solar position method')
51-
53+
5254
return ephem_df
5355

5456

0 commit comments

Comments
 (0)