hkayabilisim commited on
Commit
26dcc22
·
2 Parent(s): 4018638 83426af

Merge remote-tracking branch 'origin/main' into redefine_population_displacement

Browse files
Files changed (1) hide show
  1. tomorrowcities/pages/engine.py +3 -0
tomorrowcities/pages/engine.py CHANGED
@@ -1079,6 +1079,9 @@ def ExecutePanel():
1079
  if unique_records != all_records:
1080
  return False, "there are duplicate expstr + susceptibility records in landslide fragility"
1081
 
 
 
 
1082
  return True, ''
1083
 
1084
  def execute_engine():
 
1079
  if unique_records != all_records:
1080
  return False, "there are duplicate expstr + susceptibility records in landslide fragility"
1081
 
1082
+ missing_hospitals = set(household['commfacid']) - set(building['bldid'])
1083
+ if len(missing_hospitals) > 0:
1084
+ return False, f"Hospital(s) ({missing_hospitals}) do not exist in building data"
1085
  return True, ''
1086
 
1087
  def execute_engine():