Skip to content

Commit 62045a5

Browse files
committed
Issue #2245
Infinite sheds beam fraction on ground zenith guardrail syntax bug Set unshaded ground fraction to zero for solar_zenith> max_zenith
1 parent 9fb2eb3 commit 62045a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvlib/bifacial/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _unshaded_ground_fraction(surface_tilt, surface_azimuth, solar_zenith,
8787
surface_azimuth)
8888
f_gnd_beam = 1.0 - np.minimum(
8989
1.0, gcr * np.abs(cosd(surface_tilt) + sind(surface_tilt) * tan_phi))
90-
np.where(solar_zenith > max_zenith, 0., f_gnd_beam) # [1], Eq. 4
90+
f_gnd_beam=np.where(solar_zenith > max_zenith, 0., f_gnd_beam) # [1], Eq. 4
9191
return f_gnd_beam # 1 - min(1, abs()) < 1 always
9292

9393

0 commit comments

Comments
 (0)