From be6df1aaf9df81f836118e426aae5d0f699bd493 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 3 Mar 2014 16:37:32 +0100 Subject: hdfsee: Read old and new stream formats (for peaks) --- src/dw-hdfsee.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c index 387db45c..5c4a71de 100644 --- a/src/dw-hdfsee.c +++ b/src/dw-hdfsee.c @@ -885,7 +885,7 @@ static void load_features_from_file(struct image *image, const char *filename) float intensity, sigma, fs, ss; char phs[1024]; int r; - int cts; + float cts; signed int h, k, l; rval = fgets(line, 1023, fh); @@ -893,7 +893,7 @@ static void load_features_from_file(struct image *image, const char *filename) chomp(line); /* Try long format (from stream) */ - r = sscanf(line, "%i %i %i %f %s %f %i %f %f", + r = sscanf(line, "%i %i %i %f %s %f %f %f %f", &h, &k, &l, &intensity, phs, &sigma, &cts, &fs, &ss); if ( r == 9 ) { char name[32]; -- cgit v1.2.3