From c3b2e533e9be4bc906005b747a9250effe0c3814 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 19 Feb 2017 19:00:18 -0600 Subject: [PATCH] [interpolatable] Minor --- Snippets/interpolatable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Snippets/interpolatable.py b/Snippets/interpolatable.py index 4b78180f8..dc77cc7e4 100755 --- a/Snippets/interpolatable.py +++ b/Snippets/interpolatable.py @@ -124,7 +124,6 @@ def test(glyphsets, glyphs=None, names=None): allVectors = [] for glyphset in glyphsets: #print('.', end='') - #print() glyph = glyphset[glyph_name] perContourPen = PerContourOrComponentPen(RecordingPen, glyphset=glyphset) @@ -136,14 +135,15 @@ def test(glyphsets, glyphs=None, names=None): allVectors.append(contourVectors) for contour in contourPens: stats = GlyphStatistics(contour, glyphset=glyphset) + size = abs(stats.Area) ** .5 * .5 vector = ( int(stats.Perimeter * .125), - int(abs(stats.Area) ** .5 * .5), + int(size), int(stats.MeanX), int(stats.MeanY), int(stats.StdDevX * 2), int(stats.StdDevY * 2), - int(stats.Covariance/(stats.StdDevX*stats.StdDevY)**.5), + int(stats.Correlation * size), ) contourVectors.append(vector) #print(vector)