diff options
author | Thomas White <taw@physics.org> | 2017-09-13 15:52:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-09-15 14:33:14 +0200 |
commit | 318a10ca2aded24327456d0fb302be61f870ec02 (patch) | |
tree | d52c328b81e1f9ae120c46aec82ad7092425307b | |
parent | 9e1d57633c8e788acd9a966857f112386aad52f1 (diff) |
Record indices in write_pairs() (debugging function)
-rw-r--r-- | libcrystfel/src/predict-refine.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index 61ce3629..015fd94d 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -138,10 +138,12 @@ static void UNUSED write_pairs(const char *filename, struct reflpeak *rps, double write_fs, write_ss; double fs, ss; struct panel *p; + signed int h, k, l; fs = rps[i].peak->fs; ss = rps[i].peak->ss; p = rps[i].panel; + get_indices(rps[i].refl, &h, &k, &l); write_fs = fs + p->orig_min_fs; write_ss = ss + p->orig_min_ss; @@ -152,6 +154,9 @@ static void UNUSED write_pairs(const char *filename, struct reflpeak *rps, x_dev(&rps[i], det), y_dev(&rps[i], det)); + //fprintf(fh, "%4i %4i %4i 0.0 - 0.0 1 %7.2f %7.2f %s\n", + // h, k, l, write_fs, write_ss, p->name); + } fclose(fh); |