Skip to content

Commit 7843655

Browse files
committed
Change default method in Location.get_sun_rise_set_transit
1 parent c18c796 commit 7843655

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/location.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,15 @@ def get_airmass(self, times=None, solar_position=None,
368368

369369
return airmass
370370

371-
def get_sun_rise_set_transit(self, times, method='pyephem', **kwargs):
371+
def get_sun_rise_set_transit(self, times, method='spa', **kwargs):
372372
"""
373373
Calculate sunrise, sunset and transit times.
374374
375375
Parameters
376376
----------
377377
times : DatetimeIndex
378378
Must be localized to the Location
379-
method : str, default 'pyephem'
379+
method : str, default 'spa'
380380
'pyephem', 'spa', or 'geometric'
381381
382382
kwargs :

0 commit comments

Comments
 (0)