Easy write

This commit is contained in:
2020-04-23 18:33:57 +02:00
parent 6eff769395
commit a869a8cef8
+8 -1
View File
@@ -183,7 +183,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*MODULE_Y_SIZE, MODULE_X_SIZE},
n_modules*MODULE_N_BYTES,
"uint16",
"little");
ring_buffer.release(metadata->buffer_slot_index);