|
@@ -91,9 +91,11 @@ def check_level_reasonable(model_list, level_data):
|
|
last_model_id = ''
|
|
last_model_id = ''
|
|
error = set()
|
|
error = set()
|
|
group = 0
|
|
group = 0
|
|
|
|
+ elevations = {}
|
|
for row in sorted_arr:
|
|
for row in sorted_arr:
|
|
current_height = row.get('elevation')
|
|
current_height = row.get('elevation')
|
|
current_model_id = row.get('model_id')
|
|
current_model_id = row.get('model_id')
|
|
|
|
+ elevations[current_model_id] = current_height
|
|
if current_height > last_height:
|
|
if current_height > last_height:
|
|
last_height = current_height
|
|
last_height = current_height
|
|
last_model_id = current_model_id
|
|
last_model_id = current_model_id
|
|
@@ -115,6 +117,8 @@ def check_level_reasonable(model_list, level_data):
|
|
else:
|
|
else:
|
|
floor_row['has_error'] = False
|
|
floor_row['has_error'] = False
|
|
floor_row['error'] = None
|
|
floor_row['error'] = None
|
|
|
|
+ if model_id in elevations:
|
|
|
|
+ floor_row['elevation'] = elevations[model_id]
|
|
if len(error) == 0:
|
|
if len(error) == 0:
|
|
return True
|
|
return True
|
|
return False
|
|
return False
|