Skip to content

Commit

Permalink
Added the flip to non-tcp/ucd data
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchsig committed Mar 7, 2019
1 parent 8a47ee2 commit 1cd90dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imgprocessing/compress.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def bz2_nnrd(img_list, outfile, scan_name, update, center=None):
if center.lower() == 'ucd':
img_arr = np.rot90(img_arr, k=2)

else:
img_arr = np.fliplr(img_arr)

rawdata = img_arr.T.tostring(order='F')

compressed = compressor.compress(rawdata)
Expand Down

0 comments on commit 1cd90dd

Please sign in to comment.