aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
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");
}