Skip to content

Commit 9c06acd

Browse files
committed
play nice now
1 parent da0b3e6 commit 9c06acd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pvlib/pvsystem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,9 +1133,9 @@ def get_irradiance(self, solar_zenith, solar_azimuth, dni, ghi, dhi,
11331133
albedo = self.albedo
11341134

11351135
# dni_extra is not needed for all models, but this is easier
1136-
if (dni_extra is None and hasattr(solar_zenith, 'index') and
1137-
isinstance(solar_zenith.index, pd.DatetimeIndex)):
1138-
dni_extra = irradiance.get_extra_radiation(solar_zenith.index)
1136+
if (dni_extra is None and hasattr(solar_zenith, 'index')
1137+
and isinstance(solar_zenith.index, pd.DatetimeIndex)):
1138+
dni_extra = irradiance.get_extra_radiation(solar_zenith.index)
11391139
else:
11401140
# use the solar constant
11411141
dni_extra = 1367

0 commit comments

Comments
 (0)