Skip to content

Commit dd2478d

Browse files
authored
Refactor condition for section properties validation
1 parent 515bc61 commit dd2478d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/sectionproperties/analysis/section.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,14 @@ 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 or phi is None:
302+
if (
303+
ixx is None
304+
or iyy is None
305+
or ixy is None
306+
or i11 is None
307+
or i22 is None
308+
or phi is None
309+
):
303310
msg = "Section properties failed to save."
304311
raise RuntimeError(msg)
305312

0 commit comments

Comments
 (0)