Skip to content

Commit

Permalink
fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy committed May 23, 2024
1 parent 49a8dfe commit 6b3e07c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ def run_with_base_class():
bldg_dmg = BuildingDamage(client)
bldg_dmg.load_remote_input_dataset("buildings", bldg_dataset_id)

mapping_id = "6091d9fbb53ed4646fd276ca" # 19 archetype with retrofit
# mapping_id = "60994a1906d63d5ded1d6dcc" # 19 archetype with retrofit new format mapping
mapping_id = "5e8e3a21eaa8b80001f04f1c" # 19 archetype mapping
fragility_service = FragilityService(client)
mapping_set = MappingSet(fragility_service.get_mapping(mapping_id))
bldg_dmg.set_input_dataset('dfr3_mapping_set', mapping_set)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,16 @@ def run_with_base_class():

# joplin tornado with retrofit strategy
bldg_dataset_id = "5df7d0de425e0b00092d0082" # joplin building v6
retrofit_strategy_id = "6091d5a8daa06e14ee96d502" # plan 1
# retrofit_strategy_id = "6091d5ffdaa06e14ee96d5ef" # plan 2
retrofit_strategy_id = "660ab8f8ce705a7e54748557" # plan 1

bldg_dmg = BuildingDamage(client)
bldg_dmg.load_remote_input_dataset("buildings", bldg_dataset_id)
bldg_dmg.load_remote_input_dataset("retrofit_strategy", retrofit_strategy_id)

# lumberton building mapping (with equation)
mapping_id = "6091d9fbb53ed4646fd276ca" # 19 archetype with retrofit
# mapping_id = "60994a1906d63d5ded1d6dcc" # 19 archetype with retrofit new format mapping
mapping_id = "5e8e3a21eaa8b80001f04f1c" # 19 archetype with retrofit
fragility_service = FragilityService(client)
mapping_set = MappingSet(fragility_service.get_mapping(mapping_id))
bldg_dmg.set_input_dataset('dfr3_mapping_set', mapping_set)
bldg_dmg.set_parameter("fragility_key", "Fragility ID Code")

hazard_type = "tornado"
hazard_id = "5dfa32bbc0601200080893fb"
Expand Down

0 comments on commit 6b3e07c

Please sign in to comment.