Skip to content

Commit

Permalink
missed ones
Browse files Browse the repository at this point in the history
  • Loading branch information
AJPfleger committed Sep 19, 2024
1 parent 50832f9 commit 0a7e085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ updator_type generateFromJson(const nlohmann::json& jUpdater,
-> std::tuple<std::array<ActsScalar, 2u>, std::size_t> {
std::array<ActsScalar, 2u> range = jAxis["range"];
std::size_t bins = jAxis["bins"];
return std::make_tuple(range, bins);
return {range, bins};
};

/// Helper extractor for variable axis
Expand Down
6 changes: 2 additions & 4 deletions Tests/UnitTests/Core/Utilities/KDTreeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,12 +482,10 @@ BOOST_FIXTURE_TEST_CASE(range_search_combinatorial, TreeFixture3DDoubleInt2) {

std::vector<int> valid;

for (const std::pair<std::array<double, 3>, int>& i :
test_vector) {
const std::array<double, 3>& c = i.first;
for (const auto& [c, value] : test_vector) {
if (xmin <= c[0] && c[0] < xmax && ymin <= c[1] &&
c[1] < ymax && zmin <= c[2] && c[2] < zmax) {
valid.push_back(i.second);
valid.push_back(value);
}
}

Expand Down

0 comments on commit 0a7e085

Please sign in to comment.