diff options
author | Thomas White <taw@physics.org> | 2010-10-07 10:50:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:01 +0100 |
commit | 7ff287694b7fd5d1fca4f31e552c8d656257c82b (patch) | |
tree | 39b0ec743a6e069abf0df74d5a27e013e3ec5900 | |
parent | 9561b62b7ab15523ed90d10fbbe176926a890eb8 (diff) |
Tidy up debodge_saturation()
-rw-r--r-- | src/hdf5-file.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hdf5-file.c b/src/hdf5-file.c index 503065a0..ed1c5fe9 100644 --- a/src/hdf5-file.c +++ b/src/hdf5-file.c @@ -237,7 +237,6 @@ static void debodge_saturation(struct hdfile *f, struct image *image) int i; float *buf; herr_t r; - int n; dh = H5Dopen(f->fh, "/processing/hitfinder/peakinfo_saturated", H5P_DEFAULT); @@ -286,7 +285,6 @@ static void debodge_saturation(struct hdfile *f, struct image *image) return; } - n = 0; for ( i=0; i<size[0]; i++ ) { unsigned int x, y; @@ -301,11 +299,9 @@ static void debodge_saturation(struct hdfile *f, struct image *image) image->data[x-1+image->width*y] = val / 5.0; image->data[x+image->width*(y+1)] = val / 5.0; image->data[x+image->width*(y-1)] = val / 5.0; - n++; } - STATUS("Corrected %i saturation values, %i failed.\n", - n, (int)size[0]-n); + STATUS("Corrected %i saturation values\n", (int)size[0]); free(buf); H5Sclose(sh); |