Commit f2b2da2f authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by Samuel Debionne

Fix HDF5 parallel saving

* Refactor SaveContainerHdf5::_File:
* Add debug information when writing HDF5 Dataset chunk fails
* Remove unused variables
* Use AutoPtr for dynamically-allocated objects
* Simplify initialization at _open
parent 182701c4
This diff is collapsed.
......@@ -33,7 +33,7 @@
#define BSHUF_H5FILTER 32008
#define BSHUF_H5_COMPRESS_LZ4 2
extern "C" {
int bshuf_register_h5filter(void);
int bshuf_register_h5filter(void);
}
#endif
......@@ -68,30 +68,30 @@ private:
int findLastEntry(const _File&);
struct Parameters{
string det_name;
string instrument_name;
string det_model;
string det_type;
string lima_version;
double pixel_size[2];
Size max_image_size;
ImageType curr_image_type;
AcqMode acq_mode;
double acq_expo_time;
double acq_latency_time;
int acq_nbframes;
TrigMode acq_trigger_mode;
CtAcquisition::AccTimeMode acc_time_mode;
double acc_max_expotime;
double acc_expotime;
double acc_livetime;
double acc_deadtime;
int concat_nbframes;
Bin image_bin;
Roi image_roi;
Flip image_flip;
RotationMode image_rotation;
FrameDim image_dim;
string det_name;
string instrument_name;
string det_model;
string det_type;
string lima_version;
double pixel_size[2];
Size max_image_size;
ImageType curr_image_type;
AcqMode acq_mode;
double acq_expo_time;
double acq_latency_time;
int acq_nbframes;
TrigMode acq_trigger_mode;
CtAcquisition::AccTimeMode acc_time_mode;
double acc_max_expotime;
double acc_expotime;
double acc_livetime;
double acc_deadtime;
int concat_nbframes;
Bin image_bin;
Roi image_roi;
Flip image_flip;
RotationMode image_rotation;
FrameDim image_dim;
};
CtSaving::FileFormat m_format;
......@@ -105,7 +105,6 @@ private:
int m_acq_nbframes;
int m_max_nb_files;
int m_file_cnt;
int m_frame_cnt;
};
}
......
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