aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-12-14 15:14:29 +0100
committerThomas White <taw@physics.org>2014-12-14 15:14:29 +0100
commit96dba6ec96dc90bd5795b9ca0517c82fa5aad2c6 (patch)
tree28e2a549e7861e1f932de27690f7bcbb7aabcbce /libcrystfel/src/hdf5-file.c
parent4da7505a8e4dc37cf1d981a73f5b056dc6f418d5 (diff)
Fussiness
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 0d041e01..aad71c31 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -486,11 +486,13 @@ int get_peaks(struct image *image, struct hdfile *f, const char *p,
if ( p == NULL ) continue;
if ( p->no_index ) continue;
- /* Convert coordinates to match rearranged panels in memory */
+ /* Convert coordinates to match rearranged
+ * panels in memory */
fs = fs - p->orig_min_fs + p->min_fs;
ss = ss - p->orig_min_ss + p->min_ss;
- image_add_feature(image->features, fs, ss, image, val, NULL);
+ image_add_feature(image->features, fs, ss, image,
+ val, NULL);
}
@@ -547,7 +549,8 @@ int get_peaks(struct image *image, struct hdfile *f, const char *p,
ERROR("Couldn't reserve memory for the peak list.\n");
return 1;
}
- r = H5Dread(dh, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, buf);
+ r = H5Dread(dh, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL,
+ H5P_DEFAULT, buf);
if ( r < 0 ) {
ERROR("Couldn't read peak list.\n");
free(buf);