File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments