Skip to content

Commit 2e180e9

Browse files
authored
fix lint issues from #22 (#24)
1 parent 97569f8 commit 2e180e9

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

pvfactors/geometry/pvrow.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pvfactors.config import COLOR_DIC
66
from pvfactors.geometry.base import \
77
BaseSide, _coords_from_center_tilt_length, PVSegment
8-
from shapely.geometry import GeometryCollection, LineString
8+
from shapely.geometry import LineString
99
from pvfactors.geometry.timeseries import \
1010
TsShadeCollection, TsLineCoords, TsSurface
1111
from pvlib.tools import cosd, sind
@@ -709,10 +709,6 @@ def length(self):
709709
"""Length of the PV row."""
710710
return self.front.length + self.back.length
711711

712-
@property
713-
def boundary(self):
714-
return self._linestring.boundary
715-
716712
def intersects(self, line):
717713
"""Check if the PV row intersects with a line.
718714

pvfactors/viewfactors/vfmethods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def vf_pvrow_to_pvrow(self, ts_pvrows, tilted_to_left, vf_matrix):
240240
surf_i.coords, surf_j.coords, length_i)
241241
vf_i_to_j = np.where(tilted_to_left, vf_i_to_j, 0.)
242242
vf_j_to_i = np.divide(
243-
vf_i_to_j * length_i , length_j,
243+
vf_i_to_j * length_i, length_j,
244244
where=length_j > DISTANCE_TOLERANCE,
245245
out=np.zeros_like(length_j))
246246
vf_matrix[i, j, :] = vf_i_to_j

0 commit comments

Comments
 (0)