mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-31 23:31:28 +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:
1 parent
03af5927ad
commit
8201c5e999
3 files changed
+28
-1
No files matched your search
@@ -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