From 525a51cd348e993dcbcbd6e09e42fa55fa5c8b4c Mon Sep 17 00:00:00 2001 From: vhinger Date: Mon, 9 Mar 2026 19:02:36 +0100 Subject: [PATCH] Comments --- include/aare/RemapGenerate.hpp | 8 ++++---- src/RemapAlgorithm.cpp | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/aare/RemapGenerate.hpp b/include/aare/RemapGenerate.hpp index aec8c1a..deb58ad 100644 --- a/include/aare/RemapGenerate.hpp +++ b/include/aare/RemapGenerate.hpp @@ -16,7 +16,7 @@ auto jungfrau_ilgad_singlechip_25um_strixel_map = config::jungfrau::Chip6, rx_roi, bs); else { // or allow user-defined sensor placement - // (that would mean std::optional chip_id and + // (that would mean something like std::optional chip_id and // std::optional sensor_placement) throw std::runtime_error("Invalid sensor placement."); } @@ -34,7 +34,7 @@ auto jungfrau_ilgad_singlechip_15um_strixel_map = config::jungfrau::Chip6, rx_roi, bs); else { // or allow user-defined sensor placement - // (that would mean std::optional chip_id and + // (that would mean something like std::optional chip_id and // std::optional sensor_placement) throw std::runtime_error("Invalid sensor placement."); } @@ -52,7 +52,7 @@ auto jungfrau_ilgad_singlechip_18um_strixel_map = config::jungfrau::Chip6, rx_roi, bs); else { // or allow user-defined sensor placement - // (that would mean std::optional chip_id and + // (that would mean something like std::optional chip_id and // std::optional sensor_placement) throw std::runtime_error("Invalid sensor placement."); } @@ -67,7 +67,7 @@ auto jungfrau_ilgad_singlechip_multipitch_strixel_maps = placement = config::jungfrau::Chip6; else { // or allow user-defined sensor placement - // (that would mean std::optional chip_id and + // (that would mean something like std::optional chip_id and // std::optional sensor_placement) throw std::runtime_error("Invalid sensor placement."); } diff --git a/src/RemapAlgorithm.cpp b/src/RemapAlgorithm.cpp index 1283c47..104aa52 100644 --- a/src/RemapAlgorithm.cpp +++ b/src/RemapAlgorithm.cpp @@ -105,8 +105,7 @@ strixel_to_pixel_map(defs::SensorGroupConfig group_config, } if (min_row_strx > max_row_strx) { - // nothing mapped - return {multiplicity, pitch, eff, {}}; + return {multiplicity, pitch, eff, {}}; // nothing mapped } const int nrows_strx = max_row_strx - min_row_strx + 1;