From eec0b5b30fbb2a91cab7a3f7c7dac2ea8c00d698 Mon Sep 17 00:00:00 2001 From: Andreas Salzburger Date: Mon, 9 Jan 2023 09:49:41 +0100 Subject: [PATCH] adressing PR2 specific comments --- Plugins/Json/src/ExtentJsonConverter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/Json/src/ExtentJsonConverter.cpp b/Plugins/Json/src/ExtentJsonConverter.cpp index 1ae916e17ed..e6b4dac4f07 100644 --- a/Plugins/Json/src/ExtentJsonConverter.cpp +++ b/Plugins/Json/src/ExtentJsonConverter.cpp @@ -27,7 +27,7 @@ void Acts::from_json(const nlohmann::json& j, Acts::Extent& e) { const auto bValueNames = binningValueNames(); for (auto [ib, bvn] : enumerate(bValueNames)) { if (j.find(bvn) != j.end()) { - e.set(static_cast(ib), j[bvn]["min"], j[bvn]["max"]); + e.range(static_cast(ib)) = j[bvn]; } } -} \ No newline at end of file +}