From 1ac094abf7a9939b8e7812133ca55f75b0369540 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Tue, 15 Oct 2024 23:37:37 +0200 Subject: [PATCH] Change location.get_sun_rise_set_transit default method --- pvlib/location.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pvlib/location.py b/pvlib/location.py index 9259f410fa..bd53eaa391 100644 --- a/pvlib/location.py +++ b/pvlib/location.py @@ -328,15 +328,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. + 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 :