From 8aff477f8fec10243fefbfddfb37842a61739adb Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 1 Feb 2018 14:58:39 +0000 Subject: [PATCH] Clean up affine solution --- getting_started/04_numpy/.solutions/concat_affines.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/getting_started/04_numpy/.solutions/concat_affines.py b/getting_started/04_numpy/.solutions/concat_affines.py index 92d8a49..a097e39 100644 --- a/getting_started/04_numpy/.solutions/concat_affines.py +++ b/getting_started/04_numpy/.solutions/concat_affines.py @@ -37,14 +37,8 @@ testcoords = np.array([[ 0, 0, 0], [20, 25, 60]], dtype=np.float32) -def dist(p1, p2): - return np.sqrt(np.sum((p1 - p2) ** 2)) - - - for c in testcoords: xc = transform(s1func2s2func, c) - d = dist(c, xc) c = '{:6.2f} {:6.2f} {:6.2f}'.format(*c) xc = '{:6.2f} {:6.2f} {:6.2f}'.format(*xc) - print('Transform: [{}] -> [{}] (distance: {})'.format(c, xc, d)) + print('Transform: [{}] -> [{}])'.format(c, xc)) -- GitLab