aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-07 17:46:25 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:27 +0100
commit97c023d0947b09b2b7c5182c1938133d91f530a4 (patch)
treed5bfc77a67d54202c2edf94aeda4f5d64605d24e /src/pattern_sim.c
parent150c54e977c2e4c638bfe6d1b155229b3b3f1491 (diff)
Banish find_projected_peaks()
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index f1fbce7e..89fffbc5 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -33,6 +33,7 @@
#include "symmetry.h"
#include "reflist.h"
#include "reflist-utils.h"
+#include "geometry.h"
static void show_help(const char *s)
@@ -547,24 +548,14 @@ int main(int argc, char *argv[])
if ( config_nearbragg ) {
- /* Do EITHER: */
-
- //image.div = beam->divergence;
- //image.bw = beam->bandwidth;
- //image.profile_radius = 0.0001e9;
- //image.reflections = find_intersections(&image,
- // image.indexed_cell, 0);
-
- image.reflections = find_projected_peaks(&image,
- image.indexed_cell, 0, 0.1);
+ image.div = image.beam->divergence;
+ image.bw = image.beam->bandwidth;
+ image.profile_radius = 0.0001e9;
+ image.reflections = find_intersections(&image,
+ image.indexed_cell, 0);
integrate_reflections(&image, 0, 0, 0);
- /* OR */
-
- //image.reflections = integrate_pixels(&image, 0, 0.1,
- // config_polar);
-
}
if ( powder_fn != NULL ) {