aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
authorValerio Mariani <valerio.mariani@desy.de>2016-10-07 15:46:29 +0200
committerThomas White <taw@physics.org>2016-10-10 15:21:56 +0200
commit4f17116d29759077a02d80fd410965f848ffc05f (patch)
treeba4243f7c2a8ec91cd0350841fc882accb61b4ef /libcrystfel/src/predict-refine.c
parent34198e6f92f19dfeb0ee13c0fcc60c82b05f85e3 (diff)
Added detector shift to crystal structure, wrote get and get functions
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index 743b4d04..dfc7242f 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -584,7 +584,6 @@ int refine_prediction(struct image *image, Crystal *cr)
double total_x = 0.0;
double total_y = 0.0;
double total_z = 0.0;
- char tmp[1024];
rps = malloc(image_feature_count(image->features)
* sizeof(struct reflpeak));
@@ -626,9 +625,7 @@ int refine_prediction(struct image *image, Crystal *cr)
}
//STATUS("Final residual = %e\n", residual(rps, n, image->det));
- snprintf(tmp, 1024, "predict_refine/det_shift x = %.3f y = %.3f mm",
- total_x*1e3, total_y*1e3);
- crystal_add_notes(cr, tmp);
+ crystal_set_det_shift(cr, total_x, total_y);
crystal_set_reflections(cr, NULL);
reflist_free(reflist);