mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-03-10 16:07:45 +01:00
Fix/mythenfilereading (#250)
Add counter mask as member of RawFile BugFix: temporarily handle -1 for ROI in mythenfile
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user