aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hdf5-file.c11
-rw-r--r--src/hdf5-file.h4
2 files changed, 7 insertions, 8 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index eef85591..f025acee 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -1,5 +1,5 @@
/*
- * hdf5.c
+ * hdf5-file.c
*
* Read/write HDF5 data files
*
@@ -152,14 +152,13 @@ int get_peaks(struct image *image, struct hdfile *f)
for ( i=0; i<size[0]; i++ ) {
- unsigned int x, y;
- float val;
+ float fs, ss, val;
- x = buf[3*i+0];
- y = buf[3*i+1];
+ fs = buf[3*i+0];
+ ss = buf[3*i+1];
val = buf[3*i+2];
- image_add_feature(image->features, x, y, image, val, NULL);
+ image_add_feature(image->features, fs, ss, image, val, NULL);
}
STATUS("Got %i peaks from peak list.\n", (int)size[0]);
diff --git a/src/hdf5-file.h b/src/hdf5-file.h
index f5ee71b3..412fe270 100644
--- a/src/hdf5-file.h
+++ b/src/hdf5-file.h
@@ -1,9 +1,9 @@
/*
- * hdf5.h
+ * hdf5-file.h
*
* Read/write HDF5 data files
*
- * (c) 2006-2010 Thomas White <taw@physics.org>
+ * (c) 2006-2011 Thomas White <taw@physics.org>
*
* Part of CrystFEL - crystallography with a FEL
*