Commit e49c66e9 authored by Ethands123's avatar Ethands123 Committed by jlaura
Browse files

fixes vstack with empty points (#351)

parent c91746b1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -334,7 +334,8 @@ def distribute_points(geom, nspts, ewpts):
        
        line_of_points = create_points_along_line(top, bot, nspts)
        points.append(line_of_points)

    if len(points) < 1:
        return []
    points = np.vstack(points)
    # Perform a spatial intersection check to eject points that are not valid
    valid = [p for p in points if xy_in_polygon(p[0], p[1], geom)]