aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2014-03-25 17:35:07 +0100
committerThomas White <taw@physics.org>2014-09-05 18:01:52 +0200
commitc194bf7746e3635571808856f29434499eec55b7 (patch)
tree6e52ae148b10bf46c4ca97badb06b2cfd44a55ed /src/process_image.c
parentc7e4b7acbd624723c5973431c0101fe92bc3089d (diff)
Refactoring of peaks and reflections I/O
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 1e2c7077..71c73357 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -77,6 +77,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
if ( hdfile == NULL ) return;
check = hdf5_read(hdfile, &image, iargs->element, 1);
+
if ( check ) {
hdfile_close(hdfile);
return;
@@ -102,6 +103,11 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
case PEAK_HDF5:
/* Get peaks from HDF5 */
+
+ if ( !single_source(iargs->det, iargs->element)) {
+ ERROR("Peaks from HDF5 file not supported with multiple panel data sources.\n");
+ }
+
if ( get_peaks(&image, hdfile, iargs->hdf5_peak_path) ) {
ERROR("Failed to get peaks from HDF5 file.\n");
}