Skip to content

Commit

Permalink
mimic original max_rows behavior (pvlib#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
kandersolar committed Sep 20, 2023
1 parent 1bcdc8b commit 78da47f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pvlib/bifacial/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,10 @@ def vf_ground_sky_2d_integ(surface_tilt, gcr, height, pitch, max_rows=10,
input_is_scalar = np.isscalar(surface_tilt)

collector_width = pitch * gcr
surface_tilt = np.atleast_2d(surface_tilt)
surface_tilt = np.atleast_2d(np.abs(surface_tilt))

k = np.arange(-max_rows, max_rows+1)[:, np.newaxis]
# TODO figure out if this range is correct, or if the original code has a bug
k = np.arange(-max_rows+1, max_rows+1)[:, np.newaxis]

# primary crossed string points:
# a, b: boundaries of ground segment
Expand Down

0 comments on commit 78da47f

Please sign in to comment.