mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-19 16:18:40 +01:00
again tests
This commit is contained in:
@@ -218,9 +218,13 @@ void RawMasterFile::parse_json(const std::filesystem::path &fpath) {
|
|||||||
// keep default 0, Mythen3 not supported yet
|
// keep default 0, Mythen3 not supported yet
|
||||||
}
|
}
|
||||||
|
|
||||||
m_period =
|
if (v < 8.0) {
|
||||||
string_to<std::chrono::nanoseconds>(j["Period"].get<std::string>());
|
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
|
// Not all detectors write the bitdepth but in case
|
||||||
// its not there it is 16
|
// its not there it is 16
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ TEST_CASE("Parse a master file in .raw format", "[.integration]") {
|
|||||||
|
|
||||||
auto fpath =
|
auto fpath =
|
||||||
test_data_path() /
|
test_data_path() /
|
||||||
"raw/moench/"
|
"raw/moench04/"
|
||||||
"moench04_noise_200V_sto_both_100us_no_light_thresh_900_master_0.raw";
|
"moench04_noise_200V_sto_both_100us_no_light_thresh_900_master_0.raw";
|
||||||
REQUIRE(std::filesystem::exists(fpath));
|
REQUIRE(std::filesystem::exists(fpath));
|
||||||
RawMasterFile f(fpath);
|
RawMasterFile f(fpath);
|
||||||
|
|||||||
Reference in New Issue
Block a user