Skip to content

Commit 36c9b43

Browse files
committed
Update mismatch.py
1 parent ceba758 commit 36c9b43

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pvlib/spectrum/mismatch.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,8 +755,8 @@ def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi,
755755
References
756756
----------
757757
[1]. Polo, J., Sanz-saiz, C., Development of spectral mismatch models
758-
for BIPV applications in building façades Abbreviations : Renew. Energy 245, 122820, 2025.
759-
:doi:`10.1016/j.renene.2025.122820`
758+
for BIPV applications in building façades Abbreviations : Renew. Energy 245
759+
,122820, 2025.:doi:`10.1016/j.renene.2025.122820`
760760
761761
"""
762762
if module_type is None and coefficients is None:
@@ -765,12 +765,12 @@ def spectral_factor_polo(precipitable_water, airmass_absolute, aod500, aoi,
765765
raise ValueError('Only one of `module_type` and `coefficients` should '
766766
'be provided')
767767

768-
am_aoi=pvlib.atmosphere.get_relative_airmass(aoi)
769-
pressure=pvlib.atmosphere.alt2pres(altitude)
770-
am90=pvlib.atmosphere.get_absolute_airmass(am_aoi,pressure)
771-
Ram=am90/airmass_absolute
768+
am_aoi = pvlib.atmosphere.get_relative_airmass(aoi)
769+
pressure = pvlib.atmosphere.alt2pres(altitude)
770+
am90 = pvlib.atmosphere.get_absolute_airmass(am_aoi,pressure)
771+
Ram = am90/airmass_absolute
772772

773-
_coefficients={}
773+
_coefficients = {}
774774
_coefficients = {
775775
'cdte': (-0.0009, 46.80, 49.20, -0.87, 0.00041, 0.053),
776776
'monosi': (0.0027, 10.34, 9.48, 0.307, 0.00077, 0.006),

0 commit comments

Comments
 (0)