diff options
author | Thomas White <taw@physics.org> | 2010-10-27 11:39:14 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:04 +0100 |
commit | 679af12a3b4fea2dbdb39cfc56272816f51a2c79 (patch) | |
tree | 7ffc38d596b6b8127ade29d7583a58fa231bd57e /src/templates.c | |
parent | 80e6d044ba9237d2778d91bbb585aa93297a135e (diff) |
Take nominal photon energy from file
Diffstat (limited to 'src/templates.c')
-rw-r--r-- | src/templates.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |