From 8d6f4e740f669fca4fa580bdfa9e6809bf28aaaa Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 11 Sep 2014 10:34:21 +0200 Subject: Tidy up a bit --- libcrystfel/src/stream.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libcrystfel/src/stream.c') diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c index 66e8a179..04627a0c 100644 --- a/libcrystfel/src/stream.c +++ b/libcrystfel/src/stream.c @@ -140,10 +140,9 @@ static int read_peaks_2_3(FILE *fh, struct image *image) if ( r == 5 ) { - p = find_panel_by_name(image->det, pn); if ( p == NULL ) { - ERROR("Panel not found: %s\n"); + ERROR("Panel not found: %s\n", pn); return 1; } @@ -153,11 +152,8 @@ static int read_peaks_2_3(FILE *fh, struct image *image) image_add_feature(image->features, add_x, add_y, image, intensity, NULL); - printf("Here4\n"); - } - } while ( rval != NULL ); /* Got read error of some kind before finding PEAK_LIST_END_MARKER */ @@ -253,7 +249,8 @@ static RefList *read_stream_reflections_2_3(FILE *fh, struct detector *det) if ( strcmp(line, REFLECTION_END_MARKER) == 0 ) return out; r = sscanf(line, "%i %i %i %f %s %f %i %f %f %s", - &h, &k, &l, &intensity, phs, &sigma, &cts, &fs, &ss, pn); + &h, &k, &l, &intensity, phs, &sigma, &cts, + &fs, &ss, pn); if ( (r != 10) && (!first) ) { reflist_free(out); return NULL; -- cgit v1.2.3