Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent eb71bb1 commit f1507c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ def luts_png(request, conn=None, **kwargs):
return HttpResponse(cached_image, content_type="image/png")

# Load the luts_10.png image, to crop known LUTs from it
png_path = staticfiles_storage.path('webgateway/img/luts_10.png')
png_path = staticfiles_storage.path("webgateway/img/luts_10.png")
luts_img = Image.open(png_path)

png_img = Image.new("RGBA", (256, 10 * (len(luts) + 1)), (255, 255, 255, 255))
Expand Down Expand Up @@ -2178,9 +2178,9 @@ def luts_png(request, conn=None, **kwargs):
r.append(int(val[-3]))
g.append(int(val[-2]))
b.append(int(val[-1]))
new_img[0:10 * 10, :, 0] = numpy.array(r)
new_img[0:10 * 10, :, 1] = numpy.array(g)
new_img[0:10 * 10, :, 2] = numpy.array(b)
new_img[0 : 10 * 10, :, 0] = numpy.array(r)
new_img[0 : 10 * 10, :, 1] = numpy.array(g)
new_img[0 : 10 * 10, :, 2] = numpy.array(b)

lut_crop = Image.fromarray(new_img)
lut_crop.show()
Expand Down

0 comments on commit f1507c1

Please sign in to comment.