Fix/mythenfilereading (#250)
Some checks failed
Build on RHEL8 / build (push) Failing after 0s
Build on RHEL9 / build (push) Successful in 3m23s

Add counter mask as member of RawFile
BugFix: temporarily handle -1 for ROI in mythenfile
This commit is contained in:
2025-11-24 12:29:08 +01:00
committed by GitHub
parent 03af5927ad
commit 8201c5e999
3 changed files with 28 additions and 1 deletions

View File

@@ -320,4 +320,14 @@ TEST_CASE("Read file with unordered frames", "[.with-data]") {
REQUIRE(std::filesystem::exists(fpath));
File f(fpath);
REQUIRE_THROWS((f.read_frame()));
}
TEST_CASE("Read Mythenframe", "[.with-data]") {
auto fpath = test_data_path() / "raw/newmythen03/run_2_master_1.json";
REQUIRE(std::filesystem::exists(fpath));
RawFile f(fpath);
REQUIRE(f.master().roi().value().width() == 2560);
REQUIRE(f.master().roi().value().height() == 1);
auto frame = f.read_frame();
REQUIRE(frame.cols() == 2560);
}