Skip to content

Commit 1cd90dd

Browse files
committed
Added the flip to non-tcp/ucd data
1 parent 8a47ee2 commit 1cd90dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

imgprocessing/compress.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def bz2_nnrd(img_list, outfile, scan_name, update, center=None):
7878
if center.lower() == 'ucd':
7979
img_arr = np.rot90(img_arr, k=2)
8080

81+
else:
82+
img_arr = np.fliplr(img_arr)
83+
8184
rawdata = img_arr.T.tostring(order='F')
8285

8386
compressed = compressor.compress(rawdata)

0 commit comments

Comments
 (0)