From da51525409db6ac1ac41460d2ce5a4eea26775de Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 9 Feb 2011 16:08:27 +0100 Subject: The per-shot wavelength is needed for scaling and post refinement --- src/partialator.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index 3251f7e8..71f2831a 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -277,10 +277,11 @@ int main(int argc, char *argv[]) RefList *transfer; Reflection *refl; RefListIterator *iter; + double ph_en; - if ( find_chunk(fh, &cell, &filename) == 1 ) { - ERROR("Couldn't get all of the filenames and cells" - " from the input stream.\n"); + if ( find_chunk(fh, &cell, &filename, &ph_en) == 1 ) { + ERROR("Couldn't get all of the filenames, cells and" + "wavelengths from the input stream.\n"); return 1; } @@ -294,6 +295,7 @@ int main(int argc, char *argv[]) images[i].osf = 1.0; images[i].profile_radius = 0.005e9; images[i].reflections = reflist_new(); + images[i].lambda = ph_en_to_lambda(eV_to_J(ph_en)); /* Muppet proofing */ images[i].data = NULL; -- cgit v1.2.3