dbit offset and transceiver mask
All checks were successful
Build on RHEL8 / build (push) Successful in 2m52s
Build on RHEL9 / build (push) Successful in 2m58s

This commit is contained in:
2025-06-09 16:03:55 +02:00
parent 3b65e92cb7
commit ca4d392b2f
2 changed files with 36 additions and 10 deletions

View File

@ -78,9 +78,9 @@ class Hdf5MasterFile {
std::optional<size_t> m_analog_samples; std::optional<size_t> m_analog_samples;
uint8_t m_digital_flag{}; uint8_t m_digital_flag{};
std::optional<size_t> m_digital_samples; std::optional<size_t> m_digital_samples;
// dbitoffset std::optional<size_t> m_dbit_offset;
// dbitlist // dbitlist
// transceiver mask std::optional<size_t> m_transceiver_mask;
uint8_t m_transceiver_flag{}; uint8_t m_transceiver_flag{};
std::optional<size_t> m_transceiver_samples; std::optional<size_t> m_transceiver_samples;
// g1 roi // g1 roi
@ -136,9 +136,9 @@ class Hdf5MasterFile {
std::optional<size_t> analog_samples() const; std::optional<size_t> analog_samples() const;
std::optional<uint8_t> digital_flag() const; std::optional<uint8_t> digital_flag() const;
std::optional<size_t> digital_samples() const; std::optional<size_t> digital_samples() const;
// dbitoffset std::optional<size_t> dbit_offset() const;
// dbitlist // dbitlist
// transceiver mask std::optional<size_t> transceiver_mask() const;
std::optional<uint8_t> transceiver_flag() const; std::optional<uint8_t> transceiver_flag() const;
std::optional<size_t> transceiver_samples() const; std::optional<size_t> transceiver_samples() const;
// g1 roi // g1 roi

View File

@ -143,9 +143,13 @@ std::optional<uint8_t> Hdf5MasterFile::digital_flag() const { return m_digital_f
std::optional<size_t> Hdf5MasterFile::digital_samples() const { std::optional<size_t> Hdf5MasterFile::digital_samples() const {
return m_digital_samples; return m_digital_samples;
} }
// dbitoffset std::optional<size_t> Hdf5MasterFile::dbit_offset() const {
return m_dbit_offset;
}
// dbitlist // dbitlist
// transceiver mask std::optional<size_t> Hdf5MasterFile::transceiver_mask() const {
return m_transceiver_mask;
}
std::optional<uint8_t> Hdf5MasterFile::transceiver_flag() const { return m_transceiver_flag; } std::optional<uint8_t> Hdf5MasterFile::transceiver_flag() const { return m_transceiver_flag; }
std::optional<size_t> Hdf5MasterFile::transceiver_samples() const { std::optional<size_t> Hdf5MasterFile::transceiver_samples() const {
return m_transceiver_samples; return m_transceiver_samples;
@ -349,9 +353,9 @@ void Hdf5MasterFile::parse_acquisition_metadata(
} catch (H5::FileIException &e) { } catch (H5::FileIException &e) {
// keep the optional empty // keep the optional empty
} }
LOG(logDEBUG) << "Ten Giga: " << ToString(m_ten_giga); LOG(logDEBUG) << "Ten Giga: " << m_ten_giga;
H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2), stderr); H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2), stderr);
// thresholdenergy // thresholdenergy
// thresholdall energy // thresholdall energy
@ -466,9 +470,31 @@ void Hdf5MasterFile::parse_acquisition_metadata(
H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2), H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2),
stderr); stderr);
// dbitoffset // Dbit Offset
H5::Exception::dontPrint();
try {
m_dbit_offset = h5_get_scalar_dataset<int>(
file, std::string(metadata_group_name + "Dbit Offset"));
} catch (H5::FileIException &e) {
// keep the optional empty
}
LOG(logDEBUG) << "Dbit Offset: " << m_dbit_offset;
H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2),
stderr);
// dbitlist // dbitlist
// transceiver mask
// Transceiver Mask
H5::Exception::dontPrint();
try {
m_transceiver_mask = h5_get_scalar_dataset<int>(
file, std::string(metadata_group_name + "Transceiver Mask"));
} catch (H5::FileIException &e) {
// keep the optional empty
}
LOG(logDEBUG) << "Transceiver Mask: " << m_transceiver_mask;
H5Eset_auto(H5E_DEFAULT, reinterpret_cast<H5E_auto2_t>(H5Eprint2),
stderr);
// Transceiver Flag, Transceiver Samples // Transceiver Flag, Transceiver Samples
H5::Exception::dontPrint(); H5::Exception::dontPrint();