File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/sectionproperties_reporting Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def export_properties(
5757 ]
5858
5959 """
60- props = analysis_section .section_props .as_dict ()
60+ props = analysis_section .section_props .asdict ()
6161
6262 # These are arrays of intermediate values and are not
6363 # intended to be outputs.
@@ -84,11 +84,11 @@ def envelope_stress_results(stress_post: "sectionproperties.post.stress_post.Str
8484 stress_envelopes = {}
8585 for stress_dir_name , stress_array in stress_results .items ():
8686 trimmed_stress_name = stress_dir_name .replace ("sig_" , "" )
87+ stress_envelopes .setdefault (trimmed_stress_name , {})
8788 max_stress = np .max (stress_array )
8889 min_stress = np .min (stress_array )
8990 absmax_stress = np .max (np .abs (stress_array ))
90- stress_envelopes .update ({"max" : max_stress })
91- stress_envelopes .update ({"min" : min_stress })
92- stress_envelopes .update ({"absmax" : absmax_stress })
93- return stress_envelopes
94-
91+ stress_envelopes [trimmed_stress_name ].update ({"max" : max_stress })
92+ stress_envelopes [trimmed_stress_name ].update ({"min" : min_stress })
93+ stress_envelopes [trimmed_stress_name ].update ({"absmax" : absmax_stress })
94+ return stress_envelopes
You can’t perform that action at this time.
0 commit comments