Skip to content

Commit 0bc00d1

Browse files
Lutz Grossclaude
andcommitted
Fix Python 3 zip() incompatibility in Silo test compareSiloFiles
zip() returns an iterator in Python 3, not a list. Convert to list to support len() and indexing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7872868 commit 0bc00d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

weipa/test/python/run_savesilo_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ def compareSiloFiles(self, file1, file2):
195195
self.assertEqual(len(cy1), len(cy2))
196196
if cz2 is not None:
197197
self.assertEqual(len(cz1), len(cz2))
198-
coords1=zip(cx1,cy1,cz1)
199-
coords2=zip(cx2,cy2,cz2)
198+
coords1=list(zip(cx1,cy1,cz1))
199+
coords2=list(zip(cx2,cy2,cz2))
200200
else:
201-
coords1=zip(cx1,cy1)
202-
coords2=zip(cx2,cy2)
201+
coords1=list(zip(cx1,cy1))
202+
coords2=list(zip(cx2,cy2))
203203

204204
# Find mapping of nodes in file 1 to file 2 (they may be
205205
# permuted)

0 commit comments

Comments
 (0)