Skip to content

Commit

Permalink
bugfix - capacity scaling from bridges
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnoczay committed Nov 27, 2024
1 parent be75001 commit 9b15999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelicun/resources/auto/Hazus_Earthquake_IM.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def getHAZUSBridgeSlightDamageModifier(hazus_class, aim):

ratio = 2.5 * sa_1p0 / sa_0p3
operation = [
f'*{ratio[i]}' if ratio[i] <= 1.0 else 1.0 for i in range(len(ratio))
f'*{ratio[i]}' if ratio[i] <= 1.0 else '*1.0' for i in range(len(ratio))
]

assert len(operation) == sample_size
Expand Down

0 comments on commit 9b15999

Please sign in to comment.