Skip to content

Commit d871119

Browse files
Fix mypy in plastic_section.py
1 parent 6658072 commit d871119

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sectionproperties/analysis/plastic_section.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ def calculate_plastic_properties(
163163
# loop through each geometry force & xy-centroid
164164
for f, cx, cy in zip(self._f_list, self._cx_list, self._cy_list):
165165
# convert centroid to principal coordinates
166-
c = fea.principal_coordinate(phi=section.section_props.phi, x=cx, y=cy)
166+
cen = fea.principal_coordinate(phi=section.section_props.phi, x=cx, y=cy)
167167

168168
# calculate distance from 22-centroid to plastic centroid
169-
d22 = abs(c[1] - y22_pc)
169+
d22 = abs(cen[1] - y22_pc)
170170
section.section_props.s11 += f * d22
171171

172172
if verbose:
@@ -192,10 +192,10 @@ def calculate_plastic_properties(
192192
# loop through each geometry force & xy-centroid
193193
for f, cx, cy in zip(self._f_list, self._cx_list, self._cy_list):
194194
# convert centroid to principal coordinates
195-
c = fea.principal_coordinate(phi=section.section_props.phi, x=cx, y=cy)
195+
cen = fea.principal_coordinate(phi=section.section_props.phi, x=cx, y=cy)
196196

197197
# calculate distance from 11-centroid to plastic centroid
198-
d11 = abs(c[0] - x11_pc)
198+
d11 = abs(cen[0] - x11_pc)
199199
section.section_props.s22 += f * d11
200200

201201
if verbose:

0 commit comments

Comments
 (0)