Skip to content

Commit b8d6600

Browse files
committed
Merge branch 'master' into traditional-cmake
2 parents ba30966 + b714a35 commit b8d6600

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/performanceAssessment/ATC138/ATC138Wrapper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,14 @@ def generate_summary(output_dir: Path) -> None:
190190
recovery = data['recovery']
191191
reoc = np.array(recovery['reoccupancy']['building_level']['recovery_day'])
192192
func = np.array(recovery['functional']['building_level']['recovery_day'])
193-
full = np.array(
193+
# The building_repair_schedule captures construction completion but
194+
# excludes functional impedances modeled as parallel temp repairs (e.g.
195+
# flooding_repair_day). Full Recovery must be >= Functional Recovery by
196+
# definition, so envelope the schedule with the functional recovery day.
197+
construction_complete = np.array(
194198
data['building_repair_schedule']['full']['repair_complete_day']['per_story']
195199
).max(axis=-1)
200+
full = np.fmax(construction_complete, func)
196201

197202
def _stats(a: np.ndarray) -> dict:
198203
return {

0 commit comments

Comments
 (0)