Skip to content

Commit 6f490ea

Browse files
committed
even more out
1 parent 0bc1087 commit 6f490ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/bifacial/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ def _vf_ground_sky_2d(x, rotation, gcr, pitch, height, max_rows=10):
142142

143143
# angles from x to right edge of each row
144144
a1 = height + dy
145-
phi[0] = distance_to_row_centers + dx
145+
np.add(distance_to_row_centers, dx, out=phi[0])
146146
np.arctan2(a1, phi[0], out=phi[0])
147147

148148
# angles from x to left edge of each row
149149
a2 = height - dy
150-
phi[1] = distance_to_row_centers - dx
150+
np.subtract(distance_to_row_centers, dx, out=phi[1])
151151
np.arctan2(a2, phi[1], out=phi[1])
152152

153153
# swap angles so that phi[0,:,:,:] is the lesser angle

0 commit comments

Comments
 (0)