From 3a7146b8adeb0472a2ba8142f41752267c1c5f42 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Tue, 19 May 2020 17:26:58 +0200 Subject: [PATCH] Fix bug in dataset count --- core-buffer/src/WriterH5Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-buffer/src/WriterH5Writer.cpp b/core-buffer/src/WriterH5Writer.cpp index 3f482de..750d6a6 100644 --- a/core-buffer/src/WriterH5Writer.cpp +++ b/core-buffer/src/WriterH5Writer.cpp @@ -138,7 +138,7 @@ void WriterH5Writer::write( hsize_t f_m_dims[] = {n_frames_, 1}; H5::DataSpace f_m_space(2, f_m_dims); - hsize_t meta_count[] = {1, 1}; + hsize_t meta_count[] = {n_images_in_buffer, 1}; hsize_t meta_start[] = {current_write_index_, 0}; f_m_space.selectHyperslab(H5S_SELECT_SET, meta_count, meta_start);