diff options
author | Thomas White <taw@physics.org> | 2023-06-15 17:37:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | e9906650fd078b3a8c60581847d8d423f6c22e5e (patch) | |
tree | 4d1ae61633945d753ac04adfb24a161468257253 /tests | |
parent | 658c5f8e64b12e656a16630468358534b3740614 (diff) |
z-rotation gradients
Diffstat (limited to 'tests')
-rw-r--r-- | tests/prediction_gradient_check.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/prediction_gradient_check.c b/tests/prediction_gradient_check.c index 493da445..61ea49af 100644 --- a/tests/prediction_gradient_check.c +++ b/tests/prediction_gradient_check.c @@ -41,19 +41,6 @@ int checkrxy; -static void twod_mapping(double fs, double ss, double *px, double *py, - struct detgeom_panel *p) -{ - double xs, ys; - - xs = fs*p->fsx + ss*p->ssx; - ys = fs*p->fsy + ss*p->ssy; - - *px = (xs + p->cnx) * p->pixel_pitch; - *py = (ys + p->cny) * p->pixel_pitch; -} - - static void scan(RefList *reflections, RefList *compare, int *valid, long double *vals[3], int idx, struct detgeom *det) @@ -82,7 +69,7 @@ static void scan(RefList *reflections, RefList *compare, get_detector_pos(refl2, &fs, &ss); pn = get_panel_number(refl2); - twod_mapping(fs, ss, &xh, &yh, &det->panels[pn]); + twod_mapping(fs, ss, &xh, &yh, &det->panels[pn], 0, 0); switch ( checkrxy ) { |