[varStore] Another bugfix in optimize()
This commit is contained in:
parent
e4281b07bc
commit
0677c0e705
@ -422,6 +422,8 @@ class _Encoding(object):
|
||||
else:
|
||||
new_encoding = None
|
||||
self.best_new_encoding = new_encoding
|
||||
if new_encoding:
|
||||
break
|
||||
|
||||
|
||||
class _EncodingDict(dict):
|
||||
|
@ -108,6 +108,19 @@ def buildAxis(axisTag):
|
||||
2,
|
||||
186,
|
||||
),
|
||||
(
|
||||
5,
|
||||
[
|
||||
[10, 11, 0, 0, 20],
|
||||
[10, 300, 0, 0, 20],
|
||||
[10, 301, 0, 0, 20],
|
||||
[10, 302, 0, 0, 20],
|
||||
[10, 303, 0, 0, 20],
|
||||
[10, 304, 0, 0, 20],
|
||||
],
|
||||
1,
|
||||
180,
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_optimize(numRegions, varData, expectedNumVarData, expectedBytes):
|
||||
|
Loading…
x
Reference in New Issue
Block a user