2727import sectionproperties .analysis .solver as solver
2828import sectionproperties .post .post as post
2929
30- from shapely .geometry import asPoint , Polygon
30+ from shapely .geometry import Polygon
3131from shapely .strtree import STRtree
32-
32+ from shapely . geometry import Point
3333
3434class Section :
3535 """Class for structural cross-sections.
@@ -2150,7 +2150,7 @@ def get_stress_at_point(
21502150 Vy = 0 ,
21512151 agg_func = np .average ,
21522152 ) -> Tuple [float ]:
2153- """Calaculates the stress at a point within an element for given design actions
2153+ """Calculates the stress at a point within an element for given design actions
21542154 and returns *(sigma_zz, tau_xz, tau_yz)*
21552155
21562156 :param pt: The point. A list of the x and y coordinate
@@ -2168,7 +2168,6 @@ def get_stress_at_point(
21682168 (sigma_zz, tau_xz, tau_yz) are retrieved from each element and combined according to this function.
21692169 By default, `numpy.average` is used.
21702170 :type agg_function: function, optional
2171- :return: Resultant normal and shear stresses (sigma_zz, tau_xz, tau_yz)
21722171 :return: Resultant normal and shear stresses list[(sigma_zz, tau_xz, tau_yz)]. If a point it not in the
21732172 section then None is returned.
21742173 :rtype: Union[Tuple[float, float, float], None]
@@ -2191,7 +2190,7 @@ def get_stress_at_points(
21912190 Vy = 0 ,
21922191 agg_func = np .average ,
21932192 ) -> List [Tuple ]:
2194- """Calaculates the stress at a set of points within an element for given design actions
2193+ """Calculates the stress at a set of points within an element for given design actions
21952194 and returns *(sigma_zz, tau_xz, tau_yz)*
21962195
21972196 :param pts: The points. A list of several x and y coordinates
@@ -2241,7 +2240,7 @@ def get_stress_at_points(
22412240 }
22422241
22432242 for pt in pts :
2244- query_geom = asPoint (pt )
2243+ query_geom = Point (pt )
22452244 tri_ids = [
22462245 self .poly_mesh_idx [id (poly )]
22472246 for poly in self .mesh_search_tree .query (query_geom )
0 commit comments