From c27b662fd8ee5e5a03a488b6e6a1340a8058e484 Mon Sep 17 00:00:00 2001 From: Acly Date: Fri, 7 Jun 2024 17:25:52 +0200 Subject: [PATCH] Don't unpack tuple within index operation (not supported by older Python) --- tile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.py b/tile.py index 0a7c283..d142e80 100644 --- a/tile.py +++ b/tile.py @@ -93,7 +93,7 @@ class TileLayout: rect = self.rect(coord) mask = self.mask(coord, blend=True) mask = mask.reshape(*mask.shape, 1).repeat(1, 1, 1, image.shape[-1]) - image[*rect] = (1 - mask) * image[*rect] + mask * tile + image[rect] = (1 - mask) * image[rect] + mask * tile class ExtractImageTile: