Files
slsDetectorPackage/slsDetectorSoftware/tests/master_file/ReadersH5.cpp
T
maliakal_d 6f65a6d486
Run Simulator Tests on local RHEL9 / build (push) Failing after 1m0s
Build on RHEL8 docker image / build (push) Failing after 2m28s
Run Simulator Tests on local RHEL8 / build (push) Failing after 2m35s
Build on RHEL9 docker image / build (push) Failing after 3m34s
wip
2026-05-19 12:34:48 +02:00

25 lines
519 B
C++

// SPDX-License-Identifier: LGPL-3.0-or-other
// Copyright (C) 2021 Contributors to the SLS Detector Package
#include "Readers.h"
#ifdef HDF5C
namespace sls::test::master_file {
template <>
struct Reader<H5Context, int> {
static int read(const H5Context& ctx,
const std::string& name) {
auto ds = ctx.file.openDataSet(HDF5_GROUP + name);
int out{};
ds.read(&out, H5::PredType::NATIVE_INT);
return out;
}
};
} // namespace sls::test::master_file
#endif