geometry and pixels =>tostring
All checks were successful
Build on RHEL9 / build (push) Successful in 3m33s
Build on RHEL8 / build (push) Successful in 4m48s

This commit is contained in:
2025-06-13 14:28:10 +02:00
parent 7c232cbd48
commit dae88ad689

View File

@ -195,20 +195,13 @@ void MasterAttributes::WriteCommonHDF5Attributes(H5::H5File *fd,
strcpy_safe(c, ToString(timingMode)); strcpy_safe(c, ToString(timingMode));
dataset.write(c, strdatatype); dataset.write(c, strdatatype);
} }
// TODO: make this into an array? // geometry
// geometry x
{ {
H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR); H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR);
H5::DataSet dataset = group->createDataSet( H5::DataSet dataset = group->createDataSet(
"Geometry in x axis", H5::PredType::NATIVE_INT, dataspace); "Geometry", strdatatype, dataspace);
dataset.write(&geometry.x, H5::PredType::NATIVE_INT); strcpy_safe(c, ToString(geometry));
} dataset.write(c, strdatatype);
// geometry y
{
H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR);
H5::DataSet dataset = group->createDataSet(
"Geometry in y axis", H5::PredType::NATIVE_INT, dataspace);
dataset.write(&geometry.y, H5::PredType::NATIVE_INT);
} }
// Image Size // Image Size
{ {
@ -227,15 +220,9 @@ void MasterAttributes::WriteCommonHDF5Attributes(H5::H5File *fd,
{ {
H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR); H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR);
H5::DataSet dataset = group->createDataSet( H5::DataSet dataset = group->createDataSet(
"Number of pixels in x axis", H5::PredType::NATIVE_INT, dataspace); "Pixels", strdatatype, dataspace);
dataset.write(&nPixels.x, H5::PredType::NATIVE_INT); strcpy_safe(c, ToString(nPixels));
} dataset.write(c, strdatatype);
// npixels y
{
H5::DataSpace dataspace = H5::DataSpace(H5S_SCALAR);
H5::DataSet dataset = group->createDataSet(
"Number of pixels in y axis", H5::PredType::NATIVE_INT, dataspace);
dataset.write(&nPixels.y, H5::PredType::NATIVE_INT);
} }
// Maximum frames per file // Maximum frames per file
{ {