8000 Vectorize `pvlib.bifacial.utils._vf_ground_sky_2d` across `surface_tilt` by kandersolar · Pull Request #1682 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Vectorize pvlib.bifacial.utils._vf_ground_sky_2d across surface_tilt #1682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Mar 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stickler
  • Loading branch information
kandersolar committed Mar 9, 2023
commit d53197b2f5bc586fac936e193a5385ee11636647
4 changes: 2 additions & 2 deletions pvlib/bifacial/infinite_sheds.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def _vf_ground_sky_integ(surface_tilt, surface_azimuth, gcr, height,
# The VFs to the sky will thus be symmetric around z=0.5
z = np.linspace(0, 1, npoints)
rotation = np.atleast_1d(surface_tilt)
# calculate the integrated view factor for all of the ground between rows
if vectorize:
fz_sky = utils._vf_ground_sky_2d(z, rotation, gcr, pitch, height, max_rows)
fz_sky = utils._vf_ground_sky_2d(z, rotation, gcr, pitch, height,
max_rows)
else:
fz_sky = np.zeros((npoints, len(rotation)))
for k, r in enumerate(rotation):
Expand Down
0