again tests

This commit is contained in:
Erik Fröjdh
2025-12-18 14:16:41 +01:00
parent 28cdaa6c06
commit 9a3add0096
2 changed files with 8 additions and 4 deletions

View File

@@ -218,9 +218,13 @@ void RawMasterFile::parse_json(const std::filesystem::path &fpath) {
// keep default 0, Mythen3 not supported yet
}
m_period =
string_to<std::chrono::nanoseconds>(j["Period"].get<std::string>());
if (v < 8.0) {
m_period =
string_to<std::chrono::nanoseconds>(j["Period"].get<std::string>());
} else {
m_period = string_to<std::chrono::nanoseconds>(
j["Acquisition Period"].get<std::string>());
}
// Not all detectors write the bitdepth but in case
// its not there it is 16
try {

View File

@@ -164,7 +164,7 @@ TEST_CASE("Parse a master file in .raw format", "[.integration]") {
auto fpath =
test_data_path() /
"raw/moench/"
"raw/moench04/"
"moench04_noise_200V_sto_both_100us_no_light_thresh_900_master_0.raw";
REQUIRE(std::filesystem::exists(fpath));
RawMasterFile f(fpath);