From 679af12a3b4fea2dbdb39cfc56272816f51a2c79 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 27 Oct 2010 11:39:14 +0200 Subject: Take nominal photon energy from file --- src/templates.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/templates.c') diff --git a/src/templates.c b/src/templates.c index 105fa755..e9bd7b72 100644 --- a/src/templates.c +++ b/src/templates.c @@ -109,7 +109,8 @@ UnitCell *rotate_cell(UnitCell *in, double omega, double phi, double rot) /* Generate templates for the given cell using a representative image */ IndexingPrivate *generate_templates(UnitCell *cell, const char *filename, - struct detector *det) + struct detector *det, + double nominal_photon_energy) { struct _indexingprivate_template *priv; const char *holo; @@ -129,7 +130,7 @@ IndexingPrivate *generate_templates(UnitCell *cell, const char *filename, ERROR("Couldn't select path\n"); return NULL; } - hdf5_read(hdfile, &image, 0); + hdf5_read(hdfile, &image, 0, nominal_photon_energy); hdfile_close(hdfile); image.det = det; -- cgit v1.2.3