[Python-modules-commits] [python-pysolar] 13/18: julian.py: added missing parens

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


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

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

commit 61e03c211f4f82575863fecbba110c8a4791b164
Author: Brandon Stafford <brandon at pingswept.org>
Date:   Fri May 23 08:49:49 2008 -0400

    julian.py: added missing parens
---
 julian.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/julian.py b/julian.py
index 79bad3a..c5e76ff 100644
--- a/julian.py
+++ b/julian.py
@@ -31,7 +31,7 @@ def GetJulianDay(utc_datetime):	# based on NREL/TP-560-34302 by Andreas and Reda
 	if(month <= 2.0):		# shift to accomodate leap years?
 		year = year - 1.0
 		month = month + 12.0
-	day = utc_datetime.day + (((utc_datetime.hour * 3600.0) + (utc_datetime.minute * 60.0) + utc_datetime.second + (utc_datetime.microsecond / 1000000.0) / 86400.0)
+	day = utc_datetime.day + (((utc_datetime.hour * 3600.0) + (utc_datetime.minute * 60.0) + utc_datetime.second + (utc_datetime.microsecond / 1000000.0)) / 86400.0)
 	gregorian_offset = 2.0 - (year // 100.0) + ((year // 100.0) // 4.0)
 	julian_day = math.floor(365.25 * (year + 4716.0)) + math.floor(30.6001 * (month + 1.0)) + day - 1524.5
 	if (julian_day <= 2299160.0):

-- 
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