From b4018bec5be1213051d0a8adf31d771e1800e0a1 Mon Sep 17 00:00:00 2001 From: Gabriel Gutierrez Date: Tue, 12 Nov 2024 17:18:32 -0300 Subject: [PATCH] Refactor slice computation in PatchInferencerEngine to remove unused variable and enhance clarity --- minerva/engines/patch_inferencer_engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minerva/engines/patch_inferencer_engine.py b/minerva/engines/patch_inferencer_engine.py index 49a99ea..f9c050e 100644 --- a/minerva/engines/patch_inferencer_engine.py +++ b/minerva/engines/patch_inferencer_engine.py @@ -321,7 +321,7 @@ def __call__( tuple( [ slice(i, None) # TODO: if ((i + base >= 0) and (i < in_dim)) - for i, base, in_dim in zip([0, *offset], base, x.shape) + for i, in_dim in zip([0, *offset], x.shape) ] ) for offset in offsets