aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-28 13:39:35 +0200
committerThomas White <taw@physics.org>2019-07-17 09:19:18 +0200
commit08467883ed89a48cbc664435f5078a80bd6dfdba (patch)
tree699117c135133959424815a40bf2ef4a962e6178 /src
parent80bfa779a5167d53e476bbc54ffaa127a1b91ccb (diff)
partial_sim: Use Spectrum API
Diffstat (limited to 'src')
-rw-r--r--src/partial_sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 7ae26f20..d0c2bd5a 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -897,12 +897,12 @@ int main(int argc, char *argv[])
image.lambda = ph_en_to_lambda(eV_to_J(photon_energy));
image.div = divergence;
image.bw = bandwidth;
+ image.spectrum = spectrum_generate_gaussian(image.lambda, image.bw);
image.filename = "dummy.h5";
image.copyme = NULL;
image.crystals = NULL;
image.n_crystals = 0;
image.indexed_by = INDEXING_SIMULATION;
- image.spectrum = NULL;
image.serial = 0;
image.event = NULL;
image.hit = 0;