We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4c1822 commit 57ca34fCopy full SHA for 57ca34f
rawtools/qualitycontrol.py
@@ -263,10 +263,15 @@ def get_side_projection(args, fp):
263
# Change the array from a byte sequence to a 2-D array with the same dimensions as the image
264
try:
265
arr = arr.reshape([z, x])
266
+ logging.debug(f"arr = arr.reshape([{z}, {x}])")
267
array_buffer = arr.tobytes()
268
+ logging.debug(f"array_buffer = arr.tobytes()")
269
pngImage = Image.new("I", arr.T.shape)
270
+ logging.debug(f"pngImage = Image.new(\"I\", {arr.T.shape})")
271
pngImage.frombytes(array_buffer, 'raw', "I;16")
272
+ logging.debug(f"pngImage.frombytes(array_buffer, 'raw', \"I;16\")")
273
pngImage.save(ofp)
274
+ logging.debug(f"pngImage.save(ofp)")
275
276
if 'step' in args and args.step:
277
0 commit comments