aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-02-08 16:19:35 -0800
committerThomas White <taw@physics.org>2013-02-08 16:19:35 -0800
commit0ad51536eb7a4d4bf13909cf50382cebb043f7a8 (patch)
tree82aa41e0e7c200296df9a8b01c0bfcbe6a1debf7 /libcrystfel/src/stream.c
parent13116e93b01faee7826b5ba95a1dbf5fc3d64b45 (diff)
Count saturated peaks and record in the file
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index a9e6a441..842c90b9 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -213,6 +213,8 @@ void write_chunk(Stream *st, struct image *i, struct hdfile *hdfile,
copy_hdf5_fields(hdfile, i->copyme, st->fh);
+ fprintf(st->fh, "num_peaks = %lli\n", i->num_peaks);
+ fprintf(st->fh, "num_saturated_peaks = %lli\n", i->num_saturated_peaks);
if ( include_peaks ) {
write_peaks(i, st->fh);
}