Skip to content

Commit 5f4bc2b

Browse files
author
Laurent Claustre
committed
fixed inversion in x/y cross section on image
1 parent e4c1fdd commit 5f4bc2b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/Bpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,9 @@ def construct_bvdata(bpm):
701701
profile_x = last_proj_x.tobytes()
702702
profile_y = last_proj_y.tobytes()
703703
else:
704-
profile_x = image.buffer[:,bpm.beammark[1]].astype(numpy.uint64)
704+
profile_x = image.buffer[:,bpm.beammark[0]].astype(numpy.uint64)
705705
profile_x = profile_x.tobytes()
706-
profile_y = image.buffer[bpm.beammark[0],:].astype(numpy.uint64)
706+
profile_y = image.buffer[bpm.beammark[1],:].astype(numpy.uint64)
707707
profile_y = profile_y.tobytes()
708708

709709

0 commit comments

Comments
 (0)