[Python-modules-commits] [python-pysolar] 41/42: Fix syntax errors
Wolfgang Borgert
debacle at moszumanska.debian.org
Fri Oct 3 23:37:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag 0.6
in repository python-pysolar.
commit 476d411ac997e9dfac1c52b2eefe4cc87aa79d5e
Author: Brandon Stafford <brandon at pingswept.org>
Date: Sun Apr 20 17:02:46 2014 -0400
Fix syntax errors
---
Pysolar/rest.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Pysolar/rest.py b/Pysolar/rest.py
index 3a8c2ca..9c17f37 100644
--- a/Pysolar/rest.py
+++ b/Pysolar/rest.py
@@ -114,16 +114,16 @@ def GetEffectiveAerosolWavelength(band, turbidity_alpha):
if band == "high-frequency":
a1 = turbidity_alpha # just renaming to keep equations short
d0 = 0.57664 - 0.024743 * a1
- d1 = (0.093942 - 0.2269 * a1 0.12848 * a1 ** 2)/(1 + 0.6418 * a1)
+ d1 = (0.093942 - 0.2269 * a1 + 0.12848 * a1 ** 2)/(1 + 0.6418 * a1)
d2 = (-0.093819 + 0.36668 * a1 - 0.12775 * a1 ** 2)/(1 - 0.11651 * a1)
- d3 = a1 * (0.15232 - 0.087214 * a1 + 0.012664 a1 ** 2)/(1 - 0.90454 * a1 + 0.26167 a1 ** 2)
+ d3 = a1 * (0.15232 - 0.087214 * a1 + 0.012664 * a1 ** 2)/(1 - 0.90454 * a1 + 0.26167 * a1 ** 2)
return (d0 + d1 * ua + d2 * ua ** 2)/(1 + d3 * ua ** 2)
else:
a2 = turbidity_alpha
- e0 = 1.183 - 0.022989 * a2 + 0.020829 * a2 ** 2)/(1 + 0.11133 * a2)
- e1 = -0.50003 - 0.18329 * a2 + 0.23835 * a2 ** 2)/(1 + 1.6756 * a2)
- e2 = -0.50001 + 1.1414 * a2 + 0.0083589 * a2 ** 2)/(1 + 11.168 * a2)
- e3 = -0.70003 - 0.73587 * a2 + 0.51509 * a2 ** 2)/(1 + 4.7665 * a2)
+ e0 = (1.183 - 0.022989 * a2 + 0.020829 * a2 ** 2)/(1 + 0.11133 * a2)
+ e1 = (-0.50003 - 0.18329 * a2 + 0.23835 * a2 ** 2)/(1 + 1.6756 * a2)
+ e2 = (-0.50001 + 1.1414 * a2 + 0.0083589 * a2 ** 2)/(1 + 11.168 * a2)
+ e3 = (-0.70003 - 0.73587 * a2 + 0.51509 * a2 ** 2)/(1 + 4.7665 * a2)
return (e0 + e1 * ua + e2 * ua ** 2)/(1 + e3 * ua ** 2)
def GetGasTransmittance(band, m):
--
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