aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/hdf5-file.c
diff options
context:
space:
mode:
authorAlexandra Tolstikova <alexandra.tolstikova@desy.de>2017-11-22 16:58:10 +0100
committerThomas White <taw@physics.org>2018-09-10 15:01:29 +0200
commit5a50a82a9ee0936d67901f43e68ca37455a7814b (patch)
tree81df87a96485d981257dc9161cd2010e7674f903 /libcrystfel/src/hdf5-file.c
parent17aec9c77e9b75510e43b0fb073df75f66849761 (diff)
Change image.spectrum to image.spectrum0 to use a different structure for spectrum.
Diffstat (limited to 'libcrystfel/src/hdf5-file.c')
-rw-r--r--libcrystfel/src/hdf5-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c
index 7e3d6b11..f9c2aa97 100644
--- a/libcrystfel/src/hdf5-file.c
+++ b/libcrystfel/src/hdf5-file.c
@@ -1047,9 +1047,9 @@ int hdf5_write_image(const char *filename, const struct image *image,
write_photon_energy(fh, ph_lambda_to_eV(image->lambda), ph_en_loc);
- if ( image->spectrum != NULL && image->spectrum_size > 0 ) {
+ if ( image->spectrum0 != NULL && image->spectrum_size > 0 ) {
- write_spectrum(fh, image->spectrum, image->spectrum_size,
+ write_spectrum(fh, image->spectrum0, image->spectrum_size,
image->nsamples);
}