Skip to content

Commit

Permalink
transpose bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehrhahn committed Aug 24, 2021
1 parent faa101c commit 54f5301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyreduce/clipnflip.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def clipnflip(image, header, xrange=None, yrange=None, orientation=None, transpo
# As per the old IDL definition, transpose is true for orientations larger than 4
transpose = transpose if transpose is not None else header.get("e_transpose", (orientation % 8) >= 4)
if transpose:
timage = np.transpose(timage, axes=(-2, -1))
timage = np.transpose(timage, axes=(-1, -2))
timage = np.rot90(timage, -1 * orientation, axes=(-2, -1))

# TODO just sum up groups and stuff?
Expand Down

0 comments on commit 54f5301

Please sign in to comment.