From 343cbae0ff4581b7fbf1429b1902680cbcb1a8f6 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Thu, 23 Apr 2020 13:05:35 +0200 Subject: [PATCH] Naive writer test --- sf-writer/sf_h5_writer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sf-writer/sf_h5_writer.cpp b/sf-writer/sf_h5_writer.cpp index 7eda4bd..7150e5b 100644 --- a/sf-writer/sf_h5_writer.cpp +++ b/sf-writer/sf_h5_writer.cpp @@ -185,7 +185,14 @@ int main (int argc, char *argv[]) cout << " diff " << current_pulse_id - metadata->pulse_id << endl; } - // TODO: Write to H5 + writer.write_data( + "image", + current_pulse_id-start_pulse_id, + data, + {n_modules*512, 1024}, + n_modules*MODULE_N_BYTES, + "uint16", + "little"); ring_buffer.release(metadata->buffer_slot_index);