diff --git a/pvfactors/geometry/pvrow.py b/pvfactors/geometry/pvrow.py index abd52ba..edc2da1 100644 --- a/pvfactors/geometry/pvrow.py +++ b/pvfactors/geometry/pvrow.py @@ -5,7 +5,7 @@ from pvfactors.config import COLOR_DIC from pvfactors.geometry.base import \ BaseSide, _coords_from_center_tilt_length, PVSegment -from shapely.geometry import GeometryCollection, LineString +from shapely.geometry import LineString from pvfactors.geometry.timeseries import \ TsShadeCollection, TsLineCoords, TsSurface from pvlib.tools import cosd, sind @@ -709,10 +709,6 @@ def length(self): """Length of the PV row.""" return self.front.length + self.back.length - @property - def boundary(self): - return self._linestring.boundary - def intersects(self, line): """Check if the PV row intersects with a line. diff --git a/pvfactors/viewfactors/vfmethods.py b/pvfactors/viewfactors/vfmethods.py index aeb1645..9f900a4 100644 --- a/pvfactors/viewfactors/vfmethods.py +++ b/pvfactors/viewfactors/vfmethods.py @@ -240,7 +240,7 @@ def vf_pvrow_to_pvrow(self, ts_pvrows, tilted_to_left, vf_matrix): surf_i.coords, surf_j.coords, length_i) vf_i_to_j = np.where(tilted_to_left, vf_i_to_j, 0.) vf_j_to_i = np.divide( - vf_i_to_j * length_i , length_j, + vf_i_to_j * length_i, length_j, where=length_j > DISTANCE_TOLERANCE, out=np.zeros_like(length_j)) vf_matrix[i, j, :] = vf_i_to_j