aboutsummaryrefslogtreecommitdiff
path: root/src/templates.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-03-06 18:34:54 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:17 +0100
commitfb54afd078e600183e11caeb0713065b94e7968f (patch)
tree201b1f9f8318765362ee140399c1cd817d4fd1b7 /src/templates.c
parent806844b14db4e87114bc355d2debd9e8f8846c67 (diff)
Add -b option to powder_plot, make hdf5_read() not use nominal energy
Diffstat (limited to 'src/templates.c')
-rw-r--r--src/templates.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/templates.c b/src/templates.c
index 37188145..ed557afa 100644
--- a/src/templates.c
+++ b/src/templates.c
@@ -70,9 +70,10 @@ IndexingPrivate *generate_templates(UnitCell *cell, const char *filename,
ERROR("Couldn't select path\n");
return NULL;
}
- hdf5_read(hdfile, &image, 0, nominal_photon_energy);
+ hdf5_read(hdfile, &image, 0);
hdfile_close(hdfile);
image.det = det;
+ if ( image.lambda < 0.0 ) image.lambda = nominal_photon_energy;
priv = calloc(1, sizeof(struct _indexingprivate_template));
priv->base.indm = INDEXING_TEMPLATE;