Skip to content

Commit

Permalink
Fix for missing precision
Browse files Browse the repository at this point in the history
  • Loading branch information
aothms committed Sep 2, 2023
1 parent 1b2f0ae commit 4683d48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions features/steps/utils/ifc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ def get_precision_from_contexts(entity_contexts, func_to_return=max, default_pre
precision = get_precision_from_contexts([entity_context.ParentContext])
elif entity_context.is_a('IfcGeometricRepresentationContext') and entity_context.Precision:
return entity_context.Precision
else:
continue
precisions.append(precision)
if not precisions:
return default_precision
return func_to_return(precisions)


Expand Down

0 comments on commit 4683d48

Please sign in to comment.