Skip to content

Commit e3e47a4

Browse files
committed
pacify the linter
1 parent 610ad96 commit e3e47a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pvlib/pvsystem.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,9 +1136,10 @@ def get_irradiance(self, solar_zenith, solar_azimuth, dni, ghi, dhi,
11361136
# dni_extra is not needed for all models, but this is easier
11371137
if dni_extra is None:
11381138
if (hasattr(solar_zenith, 'index') and
1139-
isinstance(solar_zenith.index, pd.DatetimeIndex)):
1140-
dni_extra = irradiance.get_extra_radiation(
1141-
solar_zenith.index)
1139+
isinstance(solar_zenith.index, pd.DatetimeIndex)):
1140+
# calculate extraterrestrial irradiance
1141+
dni_extra = irradiance.get_extra_radiation(
1142+
solar_zenith.index)
11421143
else:
11431144
# use the solar constant
11441145
dni_extra = 1367.0

0 commit comments

Comments
 (0)