aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw27@cam.ac.uk>2009-04-09 13:10:42 +0100
committerThomas White <taw27@cam.ac.uk>2009-04-09 13:10:42 +0100
commit8327929451983c2c8e999692d7fbf9221e78d365 (patch)
tree521ef7b404ccdf4b5f5b762abc0b695479ee600e
parent6a9b94d74b0d96f901d7a6baa885c306151ae0f4 (diff)
Remove watchpoints
-rw-r--r--src/reflections.c6
-rw-r--r--src/reproject.c12
2 files changed, 0 insertions, 18 deletions
diff --git a/src/reflections.c b/src/reflections.c
index ce5f7a9..3eed317 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -91,7 +91,6 @@ void reflectionlist_free(ReflectionList *reflectionlist) {
Reflection *reflection_add(ReflectionList *reflectionlist, double x, double y, double z, double intensity, ReflectionType type) {
Reflection *new_reflection;
- Reflection *nearest;
if ( reflectionlist->list_capped ) return NULL;
@@ -101,11 +100,6 @@ Reflection *reflection_add(ReflectionList *reflectionlist, double x, double y, d
reflectionlist->list_capped = 1;
}
-// nearest = reflectionlist_find_nearest_type(reflectionlist, x, y, z, type);
-// if ( nearest && distance3d(x, y, z, nearest->x, nearest->y, nearest->z) < 0.1e9 ) {
-// printf("Too close\n");
-// return NULL;
-//}
new_reflection = malloc(sizeof(Reflection));
new_reflection->next = NULL;
new_reflection->x = x;
diff --git a/src/reproject.c b/src/reproject.c
index e0199af..41040b9 100644
--- a/src/reproject.c
+++ b/src/reproject.c
@@ -59,8 +59,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image,
double kx, ky, kz; /* Electron wavevector ("normal" times 1/lambda */
double ux, uy, uz; /* "up" vector */
double rx, ry, rz; /* "right" vector */
- int nrr = 0;
- int n = 0;
flist = image_feature_list_new();
@@ -168,11 +166,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image,
image_add_feature_reflection(flist, x,
y, image, reflection->intensity,
reflection);
- printf("adding %i %i %i\n",
- reflection->h,
- reflection->k,
- reflection->l);
- n++;
} /* else it's outside the picture somewhere */
@@ -182,8 +175,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image,
reflection = reflection->next;
- nrr++;
-
} while ( reflection );
/* Partner features only if the image has a feature list. This allows
@@ -193,8 +184,6 @@ ImageFeatureList *reproject_get_reflections(ImageRecord *image,
reproject_partner_features(flist, image);
}
- printf("processed %i, found %i\n", nrr, n);
-
return flist;
}
@@ -242,7 +231,6 @@ void reproject_lattice_changed(ControlContext *ctx) {
int partnered_measured = 0;
reproject_cell_to_lattice(ctx);
- printf("%i reflections\n", ctx->cell_lattice->n_reflections);
for ( i=0; i<ctx->images->n_images; i++ ) {