Commit 182701c4 authored by Laurent Claustre's avatar Laurent Claustre

hdf5 container: fixed bug with number of frames for last file.

parent e0ad26b7
Pipeline #28004 passed with stages
in 32 minutes and 4 seconds
......@@ -630,7 +630,7 @@ long SaveContainerHdf5::_writeFile(void* f,Data &aData,
// check if this is the last file with less frames than m_frames_per_file
int nb_frames = m_frames_per_file;
if (m_file_cnt == m_max_nb_files && m_max_nb_files !=1)
if ( m_file_cnt == m_max_nb_files && (m_acq_nbframes % m_frames_per_file) != 0 )
nb_frames = m_acq_nbframes % m_frames_per_file;
data_dims[0] = nb_frames;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment