Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/sphinx/source/whatsnew/v0.11.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Breaking Changes
Use :py:func:`~pvlib.spectrum.spectral_factor_firstsolar` instead. (:issue:`2130`, :pull:`2131`)
* Remove deprecated :py:func:`!pvlib.spectrum.get_am15g` function; use
:py:func:`~pvlib.spectrum.get_reference_spectra` instead. (:pull:`2409`)
* Change default method of :py:func:`~pvlib.location.Location.get_sun_rise_set_transit`
to ``'spa'`` instead of ``'pyephem'``. (:pull:`2410`)

Bug fixes
~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions pvlib/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,15 @@ def get_airmass(self, times=None, solar_position=None,

return airmass

def get_sun_rise_set_transit(self, times, method='pyephem', **kwargs):
def get_sun_rise_set_transit(self, times, method='spa', **kwargs):
"""
Calculate sunrise, sunset and transit times.

Parameters
----------
times : DatetimeIndex
Must be localized to the Location
method : str, default 'pyephem'
method : str, default 'spa'
'pyephem', 'spa', or 'geometric'

kwargs :
Expand Down