From 9b15999262898ebe1f2e254c162ad804adf5b9c1 Mon Sep 17 00:00:00 2001 From: Adam Zsarnoczay <33822153+zsarnoczay@users.noreply.github.com> Date: Wed, 27 Nov 2024 10:47:46 -0800 Subject: [PATCH] bugfix - capacity scaling from bridges --- pelicun/resources/auto/Hazus_Earthquake_IM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelicun/resources/auto/Hazus_Earthquake_IM.py b/pelicun/resources/auto/Hazus_Earthquake_IM.py index 1d19cb07..2712cfc8 100644 --- a/pelicun/resources/auto/Hazus_Earthquake_IM.py +++ b/pelicun/resources/auto/Hazus_Earthquake_IM.py @@ -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