Skip to content

Commit 515bc61

Browse files
authored
Add phi check for section properties validation
To avoid a RuntimeError that a argument of type "float | None" cannot be assigned to parameter "phi" of type "float" in function fea.principal_coordinate" (line 318)
1 parent 5896d0e commit 515bc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sectionproperties/analysis/section.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def calculate_geom(progress: Progress | None = None) -> None:
299299
i11 = self.section_props.i11_c
300300
i22 = self.section_props.i22_c
301301

302-
if ixx is None or iyy is None or ixy is None or i11 is None or i22 is None:
302+
if ixx is None or iyy is None or ixy is None or i11 is None or i22 is None or phi is None:
303303
msg = "Section properties failed to save."
304304
raise RuntimeError(msg)
305305

0 commit comments

Comments
 (0)