Skip to content

Commit

Permalink
DOC: Fixed typo in sphere fitting example script
Browse files Browse the repository at this point in the history
  • Loading branch information
lassoan authored and jcfr committed Feb 22, 2023
1 parent abd88fd commit 299dee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Docs/developer_guide/script_repository/markups.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _calculate_residual_sphere(parameters, x_values, y_values, z_values):
return distance_from_centre - radius

# Fit a sphere to the markups fidicual points
markupsPositions = slicer.util.arrayFromMarkupsControlPoints(markups)
markupsPositions = slicer.util.arrayFromMarkupsControlPoints(pointListNode)
import numpy as np
# initial guess
center0 = np.mean(markupsPositions, 0)
Expand Down

0 comments on commit 299dee8

Please sign in to comment.