Commit f422b96d authored by Danijel Schorlemmer's avatar Danijel Schorlemmer
Browse files

Created the ground-motion column map with only the intensity measures that...

Created the ground-motion column map with only the intensity measures that exist in the ground-motion field
parent e4e87d9a
Pipeline #30407 passed with stage
in 4 minutes and 17 seconds
......@@ -228,7 +228,9 @@ class FragilityModel:
# translate between the name in the fragility functions and the name in
# ground-motion field.
for im_ff in self.intensity_measure_map:
self.gm_type_column_map[im_ff] = im_types_dict[self.intensity_measure_map[im_ff]]
column = im_types_dict.get(self.intensity_measure_map[im_ff], None)
if column is not None:
self.gm_type_column_map[im_ff] = column
def __repr__(self):
# Informative string representation
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment