Skip to content

Commit 15f2e8e

Browse files
committed
Reorder debug statements to show before action
1 parent 57ca34f commit 15f2e8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rawtools/qualitycontrol.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,16 @@ def get_side_projection(args, fp):
262262
logging.debug(f"arr length: {len(arr)}")
263263
# Change the array from a byte sequence to a 2-D array with the same dimensions as the image
264264
try:
265-
arr = arr.reshape([z, x])
266265
logging.debug(f"arr = arr.reshape([{z}, {x}])")
267-
array_buffer = arr.tobytes()
266+
arr = arr.reshape([z, x])
268267
logging.debug(f"array_buffer = arr.tobytes()")
269-
pngImage = Image.new("I", arr.T.shape)
268+
array_buffer = arr.tobytes()
270269
logging.debug(f"pngImage = Image.new(\"I\", {arr.T.shape})")
271-
pngImage.frombytes(array_buffer, 'raw', "I;16")
270+
pngImage = Image.new("I", arr.T.shape)
272271
logging.debug(f"pngImage.frombytes(array_buffer, 'raw', \"I;16\")")
273-
pngImage.save(ofp)
272+
pngImage.frombytes(array_buffer, 'raw', "I;16")
274273
logging.debug(f"pngImage.save(ofp)")
274+
pngImage.save(ofp)
275275

276276
if 'step' in args and args.step:
277277
try:

0 commit comments

Comments
 (0)