diff options
author | Thomas White <taw@physics.org> | 2010-06-30 17:18:34 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 67a226a71fa4d609a52b83987c32fe969f572f91 (patch) | |
tree | 0cc0ceffd3e80028b1ec415525e1d67a29220bd7 /src/reflections.c | |
parent | 16a0c203e0d4a043f41bd63d51dac42ff5ff15a7 (diff) |
render_hkl: Add alternative weighting schemes
Diffstat (limited to 'src/reflections.c')
-rw-r--r-- | src/reflections.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reflections.c b/src/reflections.c index 8a9ad163..2711936b 100644 --- a/src/reflections.c +++ b/src/reflections.c @@ -115,15 +115,15 @@ double *read_reflections(const char *filename, unsigned int *counts, char line[1024]; signed int h, k, l; - float intensity, ph, res; + float intensity, ph, res, sigma; char phs[1024]; int r; int cts; rval = fgets(line, 1023, fh); - r = sscanf(line, "%i %i %i %f %s %f %i", - &h, &k, &l, &intensity, phs, &res, &cts); - if ( r != 5 ) continue; + r = sscanf(line, "%i %i %i %f %s %f %f %i", + &h, &k, &l, &intensity, phs, &sigma, &res, &cts); + if ( r != 8 ) continue; set_intensity(ref, h, k, l, intensity); if ( phases != NULL ) { |