aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-03-17 16:34:00 +0100
committerThomas White <taw@physics.org>2015-04-20 15:50:39 +0200
commit57efc91e402af247d0ed6af5484837911aa95737 (patch)
treeeeb4bd4ca62ac6451eebd41adc4b78234fbb4c5a
parent63a971d9caed029234e91e4a561a1608a608d63f (diff)
Remove debug
-rw-r--r--src/predict-refine.c7
-rw-r--r--tests/prediction_gradient_check.c10
2 files changed, 8 insertions, 9 deletions
diff --git a/src/predict-refine.c b/src/predict-refine.c
index 2c8875d4..454c135e 100644
--- a/src/predict-refine.c
+++ b/src/predict-refine.c
@@ -472,11 +472,11 @@ static int iterate(struct reflpeak *rps, int n, UnitCell *cell,
}
- show_matrix_eqn(M, v);
- shifts = solve_svd(v, M, NULL, 1);
+ //show_matrix_eqn(M, v);
+ shifts = solve_svd(v, M, NULL, 0);
for ( i=0; i<9; i++ ) {
- STATUS("Shift %i = %e\n", i, gsl_vector_get(shifts, i));
+ // STATUS("Shift %i = %e\n", i, gsl_vector_get(shifts, i));
}
/* Apply shifts */
@@ -546,7 +546,6 @@ int refine_prediction(struct image *image, Crystal *cr)
n = pair_peaks(image->features, crystal_get_cell(cr),
crystal_get_reflections(cr), rps, image->det);
- STATUS("%i peaks\n", n);
if ( n < 10 ) {
ERROR("Too few paired peaks to refine orientation.\n");
free(rps);
diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c
index 953d5fde..486e4ce1 100644
--- a/tests/prediction_gradient_check.c
+++ b/tests/prediction_gradient_check.c
@@ -345,11 +345,11 @@ static double test_gradients(Crystal *cr, double incr_val, int refine,
} else {
- STATUS("OK %s %3i %3i %3i"
- " %10.2Le %10.2e ratio = %5.2Lf"
- " %10.2e %10.2e\n",
- str, h, k, l, grad, cgrad, cgrad/grad,
- r1, r2);
+ //STATUS("OK %s %3i %3i %3i"
+ // " %10.2Le %10.2e ratio = %5.2Lf"
+ // " %10.2e %10.2e\n",
+ // str, h, k, l, grad, cgrad, cgrad/grad,
+ // r1, r2);
n_good++;