diff options
author | Alexandra Tolstikova <alexandra.tolstikova@desy.de> | 2017-11-22 16:58:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-10 15:01:29 +0200 |
commit | 5a50a82a9ee0936d67901f43e68ca37455a7814b (patch) | |
tree | 81df87a96485d981257dc9161cd2010e7674f903 /libcrystfel/src | |
parent | 17aec9c77e9b75510e43b0fb073df75f66849761 (diff) |
Change image.spectrum to image.spectrum0 to use a different structure for spectrum.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 4 | ||||
-rw-r--r-- | libcrystfel/src/image.h | 2 |
2 files changed, 3 insertions, 3 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); } diff --git a/libcrystfel/src/image.h b/libcrystfel/src/image.h index 29ce8ae1..357a550a 100644 --- a/libcrystfel/src/image.h +++ b/libcrystfel/src/image.h @@ -213,7 +213,7 @@ struct image { int serial; /* Monotonically ascending serial * number for this image */ - struct sample *spectrum; + struct sample *spectrum0; int nsamples; /* Number of wavelengths */ int spectrum_size; /* Size of "spectrum" */ |