diff options
author | Thomas White <taw@physics.org> | 2020-06-08 14:22:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | e38424f169d4d89a433f96094de551350e80c641 (patch) | |
tree | c4309bdb1b0c8fe5dc95daf4bd32805d20223117 | |
parent | f2de0f8e9a8c520125bbffb13fc11f6fdfc8a1dd (diff) |
Convert photon energy to wavelength
-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 */ } |