Skip to content

Commit 4239443

Browse files
alainakafkeswholmgren
authored andcommitted
Removes var w from _calc_d (Issue #344) (#346)
* Removes var w from _calc_d Re: Issue #344 (#344) * Removes var w from other invocations of _calc_d Re: Issue #344 (#344) * Adds _calc_d changes to API Changes in v0.4.6
1 parent ac4ca6f commit 4239443

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/sphinx/source/whatsnew/v0.4.6.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Enhancements
1818

1919
API Changes
2020
~~~~~~~~~~~
21-
21+
* Removed parameter w from _calc_d (:issue:`344`)
2222

2323
Documentation
2424
~~~~~~~~~~~~~
@@ -29,3 +29,4 @@ Contributors
2929

3030
* Will Holmgren
3131
* Uwe Krien
32+
* Alaina Kafkes

pvlib/clearsky.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def simplified_solis(apparent_elevation, aod700=0.1, precipitable_water=1.,
411411
g = _calc_g(w, aod700)
412412

413413
taud = _calc_taud(w, aod700, p)
414-
d = _calc_d(w, aod700, p)
414+
d = _calc_d(aod700, p)
415415

416416
# this prevents the creation of nans at night instead of 0s
417417
# it's also friendly to scalar and series inputs
@@ -525,7 +525,7 @@ def _calc_taud(w, aod700, p):
525525
return taud
526526

527527

528-
def _calc_d(w, aod700, p):
528+
def _calc_d(aod700, p):
529529
"""Calculate the d coefficient."""
530530

531531
p0 = 101325.

0 commit comments

Comments
 (0)