Skip to content

Commit

Permalink
BUG: Fix failing UtilTest due to renamed utility function
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.slicer.org/Slicer4/trunk@28682 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information
lassoan committed Dec 16, 2019
1 parent a1d93be commit 578396a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Applications/SlicerApp/Testing/Python/UtilTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,19 +416,19 @@ def test_arrayFromMarkupsControlPoints(self):
self.assertEqual(narray[1,2], 31+translation[2])
self.assertEqual(narray[4,2], 59+translation[2])

self.delayDisplay('Test updateMarkupControlPointsFromArray')
self.delayDisplay('Test updateMarkupsControlPointsFromArray')

narray = np.array([[2,3,4],[6,7,8]])
slicer.util.updateMarkupControlPointsFromArray(markupsNode, narray)
slicer.util.updateMarkupsControlPointsFromArray(markupsNode, narray)
self.assertEqual(markupsNode.GetNumberOfControlPoints(), 2)
position = [0]*3
markupsNode.GetNthControlPointPosition(1,position)
np.testing.assert_array_equal(position,narray[1,:])

self.delayDisplay('Test updateMarkupControlPointsFromArray with world=True')
self.delayDisplay('Test updateMarkupsControlPointsFromArray with world=True')

narray = np.array([[2,3,4],[6,7,8]])
slicer.util.updateMarkupControlPointsFromArray(markupsNode, narray, world=True)
slicer.util.updateMarkupsControlPointsFromArray(markupsNode, narray, world=True)
self.assertEqual(markupsNode.GetNumberOfControlPoints(), 2)
markupsNode.GetNthControlPointPositionWorld(1,position)
np.testing.assert_array_equal(position,narray[1,:])
Expand Down

0 comments on commit 578396a

Please sign in to comment.