Skip to content

Commit 59d6581

Browse files
committed
Revert "Issue pvlib#2245 utils.py"
This reverts commit 8b67a41.
1 parent 23dd57e commit 59d6581

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pvlib/bifacial/infinite_sheds.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,10 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith,
260260
Returns
261261
-------
262262
output : dict or DataFrame
263-
Output is a DataFrame when input ghi is a Series. See Notes for
263+
Output is a DataFrame when solar_zenith is a Series.
264+
solar_zenith is the one that sets the output type.
265+
See Issue #2245
266+
See Notes for
264267
descriptions of content.
265268
266269
Notes
@@ -372,7 +375,7 @@ def get_irradiance_poa(surface_tilt, surface_azimuth, solar_zenith,
372375
'poa_global': poa_global, 'poa_direct': poa_direct,
373376
'poa_diffuse': poa_diffuse, 'poa_ground_diffuse': poa_gnd_pv,
374377
'poa_sky_diffuse': poa_sky_pv, 'shaded_fraction': f_x}
375-
if isinstance(poa_global, pd.Series):
378+
if isinstance(solar_zenith, pd.Series):
376379
output = pd.DataFrame(output)
377380
return output
378381

0 commit comments

Comments
 (0)