Skip to content

Commit

Permalink
Fix post-metalmap normalization transpose
Browse files Browse the repository at this point in the history
  • Loading branch information
Beherith authored Nov 5, 2023
1 parent 4aa38b9 commit 5f57ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymapconv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5f57ea7

Please sign in to comment.