8000 fix klucher spelling · dacoex/pvlib-python@ea5a383 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea5a383

Browse files
committed
fix klucher spelling
1 parent 2314467 commit ea5a383

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/sphinx/source/whatsnew/v0.2.2.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Enhancements
1717
Bug fixe 8000 s
1818
~~~~~~~~~
1919

20+
* ``irradiance.total_irrad`` had a typo that required the
21+
Klucher model to be accessed with ``'klutcher'``. Both spellings will work
22+
for the remaining 0.2.* versions of pvlib,
23+
but the misspelled method will be removed in 0.3.
24+
(:issue:`97`)
2025
* Fixes an import and KeyError in the IPython notebook tutorials
2126
(:issue:`94`).
2227
* Uses the ``logging`` module properly by replacing ``format``

pvlib/irradiance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def total_irrad(surface_tilt, surface_azimuth,
376376
model = model.lower()
377377
if model == 'isotropic':
378378
sky = isotropic(surface_tilt, dhi)
379-
elif model == 'klutcher':
379+
elif model in ['klucher', 'klutcher']:
380380
sky = klucher(surface_tilt, surface_azimuth, dhi, ghi,
381381
solar_zenith, solar_azimuth)
382382
elif model == 'haydavies':

0 commit comments

Comments
 (0)
0