From 5f4bc2b30f2569447dd1608fcf5442e246394d48 Mon Sep 17 00:00:00 2001 From: Laurent Claustre Date: Thu, 28 Nov 2019 09:34:12 +0100 Subject: [PATCH] fixed inversion in x/y cross section on image --- plugins/Bpm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Bpm.py b/plugins/Bpm.py index da2fb6c..85b9eca 100644 --- a/plugins/Bpm.py +++ b/plugins/Bpm.py @@ -701,9 +701,9 @@ def construct_bvdata(bpm): profile_x = last_proj_x.tobytes() profile_y = last_proj_y.tobytes() else: - profile_x = image.buffer[:,bpm.beammark[1]].astype(numpy.uint64) + profile_x = image.buffer[:,bpm.beammark[0]].astype(numpy.uint64) profile_x = profile_x.tobytes() - profile_y = image.buffer[bpm.beammark[0],:].astype(numpy.uint64) + profile_y = image.buffer[bpm.beammark[1],:].astype(numpy.uint64) profile_y = profile_y.tobytes()