Skip to content

Commit a6abf21

Browse files
authored
fix spectral model typo (#255)
1 parent a07462e commit a6abf21

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Bug fixes
1212
* Fixed typo in __repr__ method of ModelChain and in its regarding test. (commit: b691358b)
1313
* PVSystem.pvwatts_ac could not use the eta_inv_ref kwarg and
1414
PVSystem.pvwatts_dc could not use the temp_ref kwarg. Fixed. (:issue:`252`)
15+
* Fixed typo in ModelChain.infer_spectral_model error message. (:issue:`251`)
16+
1517

1618
API Changes
1719
~~~~~~~~~~~

pvlib/modelchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def infer_spectral_model(self):
528528
if set(['A4', 'A3', 'A2', 'A1', 'A0']) <= params:
529529
return self.sapm_spectral_loss
530530
else:
531-
raise ValueError('could not infer temp model from ' +
531+
raise ValueError('could not infer spectral model from ' +
532532
'system.module_parameters')
533533

534534
def first_solar_spectral_loss(self):

0 commit comments

Comments
 (0)