Skip to content

Commit 57ca34f

Browse files
committed
Additional debug statement during memory allocation
1 parent b4c1822 commit 57ca34f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rawtools/qualitycontrol.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,15 @@ def get_side_projection(args, fp):
263263
# Change the array from a byte sequence to a 2-D array with the same dimensions as the image
264264
try:
265265
arr = arr.reshape([z, x])
266+
logging.debug(f"arr = arr.reshape([{z}, {x}])")
266267
array_buffer = arr.tobytes()
268+
logging.debug(f"array_buffer = arr.tobytes()")
267269
pngImage = Image.new("I", arr.T.shape)
270+
logging.debug(f"pngImage = Image.new(\"I\", {arr.T.shape})")
268271
pngImage.frombytes(array_buffer, 'raw', "I;16")
272+
logging.debug(f"pngImage.frombytes(array_buffer, 'raw', \"I;16\")")
269273
pngImage.save(ofp)
274+
logging.debug(f"pngImage.save(ofp)")
270275

271276
if 'step' in args and args.step:
272277
try:

0 commit comments

Comments
 (0)