diff options
author | Thomas White <taw@physics.org> | 2014-08-11 11:58:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-08-11 12:09:09 +0200 |
commit | 55f6dd31901f05477d4c84437e4479d06059a56b (patch) | |
tree | 5e4f4e6e0e9e2d1f5fb1cfb88a1b22fbb0b1365b | |
parent | 50af164e6151c69de0f93428bd83cdb60d2e9d27 (diff) |
Separate out initial crystal parameters
-rw-r--r-- | src/process_image.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/process_image.c b/src/process_image.c index 0ec058ac..434ea984 100644 --- a/src/process_image.c +++ b/src/process_image.c @@ -166,20 +166,17 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs, } pargs->n_crystals = image.n_crystals; + for ( i=0; i<image.n_crystals; i++ ) { + crystal_set_image(image.crystals[i], &image); + } - /* Default beam parameters */ + /* Default parameters */ image.div = image.beam->divergence; image.bw = image.beam->bandwidth; - - /* Integrate each crystal's diffraction spots */ for ( i=0; i<image.n_crystals; i++ ) { - - /* Set default crystal parameter(s) */ crystal_set_profile_radius(image.crystals[i], image.beam->profile_radius); crystal_set_mosaicity(image.crystals[i], 0.0); /* radians */ - crystal_set_image(image.crystals[i], &image); - } /* Integrate all the crystals at once - need all the crystals so that |