From 35febd302e6d6234d9c88f3ab0845baef18abfda Mon Sep 17 00:00:00 2001 From: Jens Kutilek Date: Thu, 20 Jul 2017 16:18:48 +0200 Subject: [PATCH] Fix some more compile calls --- Tests/ttLib/tables/TupleVariation_test.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Tests/ttLib/tables/TupleVariation_test.py b/Tests/ttLib/tables/TupleVariation_test.py index 510b1985f..6986d5b6e 100644 --- a/Tests/ttLib/tables/TupleVariation_test.py +++ b/Tests/ttLib/tables/TupleVariation_test.py @@ -194,7 +194,7 @@ class TupleVariationTest(unittest.TestCase): [(7,4), (8,5), (9,6)]) axisTags = ["wght", "wdth"] sharedPeakIndices = { var.compileCoord(axisTags): 0x77 } - tup, deltas = var.compile(axisTags, sharedPeakIndices, + tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, sharedPoints={0,1,2}) # len(deltas)=8; flags=None; tupleIndex=0x77 # embeddedPeaks=[]; intermediateCoord=[] @@ -209,7 +209,7 @@ class TupleVariationTest(unittest.TestCase): [(7,4), (8,5), (9,6)]) axisTags = ["wght", "wdth"] sharedPeakIndices = { var.compileCoord(axisTags): 0x77 } - tup, deltas = var.compile(axisTags, sharedPeakIndices, + tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, sharedPoints={0,1,2}) # len(deltas)=8; flags=INTERMEDIATE_REGION; tupleIndex=0x77 # embeddedPeak=[]; intermediateCoord=[(0.3, 0.1), (0.7, 0.9)] @@ -224,7 +224,7 @@ class TupleVariationTest(unittest.TestCase): [(7,4), (8,5), (9,6)]) axisTags = ["wght", "wdth"] sharedPeakIndices = { var.compileCoord(axisTags): 0x77 } - tup, deltas = var.compile(axisTags, sharedPeakIndices, + tup, deltas, _ = var.compile(axisTags, sharedPeakIndices, sharedPoints=None) # len(deltas)=9; flags=PRIVATE_POINT_NUMBERS; tupleIndex=0x77 # embeddedPeak=[]; intermediateCoord=[] @@ -240,7 +240,7 @@ class TupleVariationTest(unittest.TestCase): [(7,4), (8,5), (9,6)]) axisTags = ["wght", "wdth"] sharedPeakIndices = { var.compileCoord(axisTags): 0x77 } - tuple, deltas = var.compile(axisTags, + tuple, deltas, _ = var.compile(axisTags, sharedPeakIndices, sharedPoints=None) # len(deltas)=9; flags=PRIVATE_POINT_NUMBERS; tupleIndex=0x77 # embeddedPeak=[]; intermediateCoord=[(0.0, 0.0), (1.0, 1.0)] @@ -255,7 +255,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.0, 0.5, 0.5), "wdth": (0.0, 0.8, 0.8)}, [(7,4), (8,5), (9,6)]) - tup, deltas = var.compile(axisTags=["wght", "wdth"], + tup, deltas, _ = var.compile(axisTags=["wght", "wdth"], sharedCoordIndices={}, sharedPoints={0, 1, 2}) # len(deltas)=8; flags=EMBEDDED_PEAK_TUPLE # embeddedPeak=[(0.5, 0.8)]; intermediateCoord=[] @@ -268,7 +268,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.0, 0.5, 0.5), "wdth": (0.0, 0.8, 0.8)}, [3, 1, 4]) - tup, deltas = var.compile(axisTags=["wght", "wdth"], + tup, deltas, _ = var.compile(axisTags=["wght", "wdth"], sharedCoordIndices={}, sharedPoints={0, 1, 2}) # len(deltas)=4; flags=EMBEDDED_PEAK_TUPLE # embeddedPeak=[(0.5, 0.8)]; intermediateCoord=[] @@ -280,7 +280,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.0, 0.5, 1.0), "wdth": (0.0, 0.8, 0.8)}, [(7,4), (8,5), (9,6)]) - tup, deltas = var.compile(axisTags=["wght", "wdth"], + tup, deltas, _ = var.compile(axisTags=["wght", "wdth"], sharedCoordIndices={}, sharedPoints={0, 1, 2}) # len(deltas)=8; flags=EMBEDDED_PEAK_TUPLE @@ -295,7 +295,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.0, 0.5, 0.5), "wdth": (0.0, 0.8, 0.8)}, [(7,4), (8,5), (9,6)]) - tup, deltas = var.compile( + tup, deltas, _ = var.compile( axisTags=["wght", "wdth"], sharedCoordIndices={}, sharedPoints=None) # len(deltas)=9; flags=PRIVATE_POINT_NUMBERS|EMBEDDED_PEAK_TUPLE # embeddedPeak=[(0.5, 0.8)]; intermediateCoord=[] @@ -309,7 +309,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.0, 0.5, 0.5), "wdth": (0.0, 0.8, 0.8)}, [7, 8, 9]) - tup, deltas = var.compile( + tup, deltas, _ = var.compile( axisTags=["wght", "wdth"], sharedCoordIndices={}, sharedPoints=None) # len(deltas)=5; flags=PRIVATE_POINT_NUMBERS|EMBEDDED_PEAK_TUPLE # embeddedPeak=[(0.5, 0.8)]; intermediateCoord=[] @@ -322,7 +322,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.4, 0.5, 0.6), "wdth": (0.7, 0.8, 0.9)}, [(7,4), (8,5), (9,6)]) - tup, deltas = var.compile( + tup, deltas, _ = var.compile( axisTags = ["wght", "wdth"], sharedCoordIndices={}, sharedPoints=None) # len(deltas)=9; @@ -339,7 +339,7 @@ class TupleVariationTest(unittest.TestCase): var = TupleVariation( {"wght": (0.4, 0.5, 0.6), "wdth": (0.7, 0.8, 0.9)}, [7, 8, 9]) - tup, deltas = var.compile( + tup, deltas, _ = var.compile( axisTags = ["wght", "wdth"], sharedCoordIndices={}, sharedPoints=None) # len(deltas)=5;