Skip to content

Commit

Permalink
BugFix for ModelValidator
Browse files Browse the repository at this point in the history
The LayerGeometry's Model id (mid) used for locating the model
  • Loading branch information
drlukeparry committed Apr 10, 2021
1 parent 3031654 commit 1bbf602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyslm/geometry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def validateBuild(models: List[Model], layers: List[Layer]):
warn("Warning: Layer ({:d}) does not contain any layer geometry. It is advised to check this is valid".format(layer.layerId))

for layerGeom in layer.geometry:
model = modelIdx.get(model.mid, None)
model = modelIdx.get(layerGeom.mid, None)

if not model:
raise Exception("Layer Geometry in layer ({:d} @ {:.3f}) has not been assigned a model".format(layer.layerId, layer.z))
Expand Down

0 comments on commit 1bbf602

Please sign in to comment.