[Python-modules-commits] [python-pysolar] 10/10: Added a docstring, removed some extra whitespace.

Wolfgang Borgert debacle at moszumanska.debian.org
Fri Oct 3 23:36:04 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to annotated tag 0.2.1
in repository python-pysolar.

commit 3ee9f8309fb56bc31ed96d070b071d81907a78fe
Author: Brandon Stafford <brandon at farb.(none)>
Date:   Sat Mar 8 16:49:48 2008 -0500

    Added a docstring, removed some extra whitespace.
---
 solar.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/solar.py b/solar.py
index 1577301..33154ba 100644
--- a/solar.py
+++ b/solar.py
@@ -101,9 +101,14 @@ def GetDayOfYear(utc_datetime):
 	return delta.days
 
 def GetDeclination(day):
+	"""The declination of the sun is the angle between
+	Earth's equatorial plane and a line between the Earth and the sun.
+	The declination of the sun varies between 23.45 degrees and -23.45 degrees,
+	hitting zero on the equinoxes and peaking on the solstices.
+	"""
 	return 23.45 * math.sin((2 * math.pi / 365.0) * (day - 81))
 
-def GetEquatorialHorizontalParallax(    radius_vector):
+def GetEquatorialHorizontalParallax(radius_vector):
 	return 8.794 / (3600 / radius_vector)
 
 def GetFlattenedLatitude(latitude):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pysolar.git



More information about the Python-modules-commits mailing list