mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-11-24 01:27:54 +01:00
fixed tests
This commit is contained in:
1 parent
255f8e36b4
commit
24bb65c15d
2 files changed
+8
-4
No files matched your search
@@ -104,6 +104,11 @@ template <std::size_t N, std::size_t M = N> class StrixelPixelMap {
|
||||
return m_group_maps;
|
||||
}
|
||||
|
||||
const std::array<defs::StrixelGroupToPixelMap, M> &
|
||||
get_group_maps_ref() const {
|
||||
return m_group_maps;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the strixel-to-pixel map for a specific strixel group.
|
||||
* @param group_index Index of the strixel group (0-based).
|
||||
|
||||
@@ -288,7 +288,7 @@ TEST_CASE("strixel_to_pixel_map: user ROI smaller than group ROI",
|
||||
const auto placement = test_placement();
|
||||
|
||||
// User ROI is in module coordinates.
|
||||
const ROI user_roi{65, 72, 65, 67};
|
||||
const ROI user_roi{65, 71, 65, 67};
|
||||
|
||||
StrixelPixelMap map(SensorConfig<1>{sensor, {group}}, placement, {0, 0});
|
||||
|
||||
@@ -413,11 +413,10 @@ TEST_CASE("strixel_to_pixel_map: user ROI does not intersect group ROI",
|
||||
|
||||
map.calculate_map(user_roi);
|
||||
|
||||
const auto result = map.get_group_maps()[0];
|
||||
const auto result = map.get_group_map(0);
|
||||
|
||||
CHECK(result.effective_roi.is_empty());
|
||||
CHECK(result.map.data() ==
|
||||
nullptr); // is there a better check for empty NDArray?
|
||||
CHECK(result.empty() == true);
|
||||
}
|
||||
|
||||
// ModuloOrdering
|
||||
|
||||
Reference in new issue
Block a user