From 8a88f9bdd200645ceb30a2c136b865528c40b1ee Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 17 Nov 2014 11:06:42 +0100 Subject: Tolerate having no wavelength --- libcrystfel/src/detector.c | 2 +- libcrystfel/src/hdf5-file.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 486fb32e..e29b6d39 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -930,7 +930,7 @@ struct detector *get_detector_geometry(const char *filename, } if ( beam != NULL ) { - beam->photon_energy = -1.0; + beam->photon_energy = 0.0; beam->photon_energy_from = NULL; beam->photon_energy_scale = 1.0; } diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index 615a2faf..c5ac5efc 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -1264,14 +1264,10 @@ int hdf5_read2(struct hdfile *f, struct image *image, struct event *ev, if ( (image->lambda > 1.0) || (image->lambda < 1e-20) ) { - /* Error message covers a silly value in the beam file - * or in the HDF5 file. */ - ERROR("Nonsensical wavelength (%e m) value " + ERROR("WARNING: Nonsensical wavelength (%e m) value " "for file: %s, event: %s.\n", image->lambda, image->filename, get_event_string(image->event)); - hdfile_close(f); - return 1; } } -- cgit v1.2.3