mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-02-18 15:28: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
|
||||
}
|
||||
|
||||
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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user