aboutsummaryrefslogtreecommitdiff
path: root/src/hdf5-file.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/hdf5-file.c
parent806844b14db4e87114bc355d2debd9e8f8846c67 (diff)
Add -b option to powder_plot, make hdf5_read() not use nominal energy
Diffstat (limited to 'src/hdf5-file.c')
-rw-r--r--src/hdf5-file.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c
index 313489e4..6db904d4 100644
--- a/src/hdf5-file.c
+++ b/src/hdf5-file.c
@@ -390,8 +390,7 @@ static void debodge_saturation(struct hdfile *f, struct image *image)
}
-int hdf5_read(struct hdfile *f, struct image *image, int satcorr,
- double nominal_photon_energy)
+int hdf5_read(struct hdfile *f, struct image *image, int satcorr)
{
herr_t r;
float *buf;
@@ -434,10 +433,6 @@ int hdf5_read(struct hdfile *f, struct image *image, int satcorr,
/* Read wavelength from file */
image->lambda = get_wavelength(f);
- if ( image->lambda < 0.0 ) {
- ERROR("Couldn't read wavelength - using nominal value.\n");
- image->lambda = ph_en_to_lambda(eV_to_J(nominal_photon_energy));
- }
image->f0 = get_f0(f);
if ( image->f0 < 0.0 ) {