diff options
author | Alexandra Tolstikova <alexandra.tolstikova@desy.de> | 2017-11-22 17:46:15 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-10 15:18:15 +0200 |
commit | 925610d93bbbdf590a58c5bb9fdae2af5a8fd30f (patch) | |
tree | 3f177fbeaf171c46c28e39ca4b7cd25ff475dd7d /src/process_image.c | |
parent | 5a50a82a9ee0936d67901f43e68ca37455a7814b (diff) |
indexamajig: read pink beam spectrum from file
Diffstat (limited to 'src/process_image.c')
-rw-r--r-- | src/process_image.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c index 94c0dc26..89887436 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -272,6 +272,11 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, image.bw = 0.00000001; } + /* Set beam spectrum for pink beam data */ + if ( iargs->spectrum != NULL ) { + image.spectrum = iargs->spectrum; + } + if ( image_feature_count(image.features) < iargs->min_peaks ) { r = chdir(rn); if ( r ) { |