Skip to content

Commit

Permalink
Bug Fix: build time calculation correction for pyslm.geometry.PointsG…
Browse files Browse the repository at this point in the history
…eometry
  • Loading branch information
drlukeparry committed Mar 9, 2024
1 parent 72a1b2f commit 7f1e42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyslm/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def getLayerGeometryTime(layerGeom: LayerGeometry, models: List[Model],
if isinstance(layerGeom, HatchGeometry) or isinstance(layerGeom, ContourGeometry):
scanTime = getLayerGeometryPathLength(layerGeom) / getEffectiveLaserSpeed(bstyle)
elif isinstance(layerGeom, PointsGeometry):
scanTime = layerGeom.coords * float(bstyle.pointExposureTime) * 1e-6
scanTime = layerGeom.coords.shape[0] * float(bstyle.pointExposureTime) * 1e-6
else:
raise Exception('Invalid LayerGeometry object passed as an argument')

Expand Down

0 comments on commit 7f1e42a

Please sign in to comment.