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 Oct 8, 2024
1 parent dea938a commit 3483e04
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 @@ -2148,7 +2148,7 @@ def luts_png(request, conn=None, **kwargs):

if len(lut_data) in [768, 800]:
lut_arr = numpy.array(lut_data, dtype="uint8")[-768:]
new_img[(i*10): (i+1)*10, :, :3] = lut_arr.reshape(3, 256).T
new_img[(i * 10) : (i + 1) * 10, :, :3] = lut_arr.reshape(3, 256).T
else:
lut_data = lut_data.decode()
r, g, b = [], [], []
Expand All @@ -2164,9 +2164,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[(i*10): (i+1)*10, :, 0] = numpy.array(r)
new_img[(i*10): (i+1)*10, :, 1] = numpy.array(g)
new_img[(i*10): (i+1)*10, :, 2] = numpy.array(b)
new_img[(i * 10) : (i + 1) * 10, :, 0] = numpy.array(r)
new_img[(i * 10) : (i + 1) * 10, :, 1] = numpy.array(g)
new_img[(i * 10) : (i + 1) * 10, :, 2] = numpy.array(b)

# Set the last row for the channel sliders transparent gradient
new_img[-10:] = 0
Expand Down

0 comments on commit 3483e04

Please sign in to comment.