Grid.from_data()

This commit is contained in:
Stefan Harmuth 2023-12-03 14:35:17 +01:00
parent af443c94b2
commit de8796d415

View File

@ -652,7 +652,7 @@ class Grid:
for y, row in enumerate(data): for y, row in enumerate(data):
for x, col in enumerate(row): for x, col in enumerate(row):
if translate is not None and col in translate: if translate is not None and col in translate:
if isinstance(col, Callable): if isinstance(translate[col], Callable):
col = translate[col](col) col = translate[col](col)
else: else:
col = translate[col] col = translate[col]