From 5f57ea769e85f0aa56f74e1f9cba654656cad2d7 Mon Sep 17 00:00:00 2001 From: Beherith Date: Sun, 5 Nov 2023 21:30:49 +0100 Subject: [PATCH] Fix post-metalmap normalization transpose --- src/pymapconv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymapconv.py b/src/pymapconv.py index 59e9fb1..f8410d5 100644 --- a/src/pymapconv.py +++ b/src/pymapconv.py @@ -330,7 +330,7 @@ def calcspots(self, normalizemetal): newdata = [0]*(self.h*self.w) for spot in self.spots: for pixel in spot.pixels: - newdata[pixel[0] + pixel[1]*self.w] = pixel[2] + newdata[pixel[0]*self.w + pixel[1]] = pixel[2] return newdata def compileSMF(myargs):