From f5db71ccfe6024294494e6eb256ca744ff30c235 Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Mon, 22 Feb 2016 17:26:47 +0100 Subject: Fixed bug with memspace size in write_location --- libcrystfel/src/hdf5-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index acb3b525..023b0f7d 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -810,8 +810,8 @@ static void write_location(hid_t fh, struct detector *det, float *data, m_count[0] = p.max_ss - p.min_ss +1; m_count[1] = p.max_fs - p.min_fs +1; - dimsm[0] = det->max_fs + 1; - dimsm[1] = det->max_ss + 1; + dimsm[0] = det->max_ss + 1; + dimsm[1] = det->max_fs + 1; memspace = H5Screate_simple(2, dimsm, NULL); r = H5Sselect_hyperslab(memspace, H5S_SELECT_SET, -- cgit v1.2.3