You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 94d4e0e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(other_functionality): fire suppression keycheck
- matched key (recovery_day['building'] -> ['fire_suppression']). this
matches matlab code.
- amax to fmax to fix array size reduction and element-wise matching.
this fix is previously precedented in commit 1522d04
# Consider utilities (assume no backup water supply)
106
-
recovery_day['fire_suppression'] =np.fmax(recovery_day['building']['fire'], np.array(utilities['water'])) # Assumes building does not have backup water supply
106
+
recovery_day['fire_suppression'] =np.fmax(recovery_day['fire_suppression'], np.array(utilities['water'])) # Assumes building does not have backup water supply
# Add days to components that are affecting occupancy
298
298
contributing_drops= ((damaged_comps*filt_fs_drop) >0) *np.logical_not(fire_drop_operational).reshape(num_reals,1) #count all components that contributed to non operational fire drops
299
299
contributing_branches= ((damaged_comps*filt_fs_drop) >0) *np.logical_not(fire_branch_operational).reshape(num_reals,1) # count all components that contributed to non operational fire drops
0 commit comments