diff options
-rw-r--r-- | libcrystfel/src/image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index 09e1e755..ca9d7028 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -395,7 +395,8 @@ static void create_detgeom(struct image *image, DataTemplate *dtempl) } - image->lambda = get_value(image, dtempl->wavelength_from); + /* FIXME: Units for wavelength/photon energy in DataTemplate */ + image->lambda = ph_eV_to_lambda(get_value(image, dtempl->wavelength_from)); image->detgeom = detgeom; /* FIXME: spectrum */ } |